[][src]Struct neuralnetwork::neuralnetwork::NeuralNetwork

pub struct NeuralNetwork {
    pub input_nodes: usize,
    pub hidden_nodes: Vec<usize>,
    pub output_nodes: usize,
    // some fields omitted
}

Fields

input_nodes: usizehidden_nodes: Vec<usize>output_nodes: usize

Implementations

impl NeuralNetwork[src]

pub fn new(
    input_nodes: usize,
    hidden_nodes: Vec<usize>,
    output_nodes: usize,
    learning_rate: f32,
    activation_function_name: &str
) -> NeuralNetwork
[src]

pub fn train(&mut self, input: &Matrix, expected_output: &Matrix)[src]

pub fn predict(&self, input: &Matrix) -> Matrix[src]

pub fn save_model(&self, filename: &str)[src]

pub fn load_model(filename: &str) -> NeuralNetwork[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.