Struct juggernaut::nl::NeuralLayer
[−]
[src]
pub struct NeuralLayer { pub activation: Box<Activation>, pub inputs: usize, pub neurons: usize, pub weights: Matrix, }
Represents a neural layer with its weights
Fields
activation: Box<Activation>
inputs: usize
neurons: usize
weights: Matrix
Methods
impl NeuralLayer
[src]
fn new<T: 'static>(neurons: usize, inputs: usize, activation: T) -> NeuralLayer where
T: Activation,
T: Activation,