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
input: Vec<N>
output: Vec<N>
output_activation: fn(_: f64) -> f64
Methods
impl<N: Neuron> NeuralNetwork<N>
[src]
fn new(
input_count: usize,
hidden_counts: &[usize],
output_count: usize,
hidden_activation: fn(_: f64) -> f64,
output_activation: fn(_: f64) -> f64
) -> Self
[src]
input_count: usize,
hidden_counts: &[usize],
output_count: usize,
hidden_activation: fn(_: f64) -> f64,
output_activation: fn(_: f64) -> f64
) -> Self
fn pulse(&mut self, input: &[f64]) -> Vec<f64>
[src]
fn save<T: CopyIO>(&self, f: &mut T) -> Result<()>
[src]
fn load<T: CopyIO>(
f: &mut T,
hidden_activation: fn(_: f64) -> f64,
output_activation: fn(_: f64) -> f64
) -> Result<Self>
[src]
f: &mut T,
hidden_activation: fn(_: f64) -> f64,
output_activation: fn(_: f64) -> f64
) -> Result<Self>
Trait Implementations
impl<N: Clone + Neuron> Clone for NeuralNetwork<N>
[src]
fn clone(&self) -> NeuralNetwork<N>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<N: PartialEq + Neuron> PartialEq for NeuralNetwork<N>
[src]
fn eq(&self, __arg_0: &NeuralNetwork<N>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NeuralNetwork<N>) -> bool
[src]
This method tests for !=
.