MLP
darkforest-core
module: nn
since v0.1.0-alpha
Signature
rust
pub struct MLP { layers: Vec<Linear>, activation: Activation }
Overview
Multi-layer perceptron container used as the primary Milestone 1 parity exit model.
Invariants & Design Principles
- Invariant: Verified against PyTorch: 200 steps on synthetic Gaussian data passes loss divergence threshold.
Usage Example
rust
let mlp = MLP::new(&[784, 256, 64, 10]);