Struct neural_network::NeuralNetwork [] [src]

pub struct NeuralNetwork<N: Neuron> {
    pub input: Vec<N>,
    pub hidden: Vec<Vec<N>>,
    pub output: Vec<N>,
    pub hidden_activation: fn(_: f64) -> f64,
    pub output_activation: fn(_: f64) -> f64,
}

Fields

Methods

impl<N: Neuron> NeuralNetwork<N>
[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<N: Clone + Neuron> Clone for NeuralNetwork<N>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<N: PartialEq + Neuron> PartialEq for NeuralNetwork<N>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<N: Debug + Neuron> Debug for NeuralNetwork<N>
[src]

[src]

Formats the value using the given formatter.