Trait Train

Source
pub trait Train<X, Y> {
    type Output;

    // Required method
    fn train(&mut self, input: &X, target: &Y) -> NeuralResult<Self::Output>;

    // Provided method
    fn train_for(
        &mut self,
        input: &X,
        target: &Y,
        epochs: usize,
    ) -> NeuralResult<Self::Output> { ... }
}
Expand description

This trait defines the training process for the network

Required Associated Types§

Required Methods§

Source

fn train(&mut self, input: &X, target: &Y) -> NeuralResult<Self::Output>

Provided Methods§

Source

fn train_for( &mut self, input: &X, target: &Y, epochs: usize, ) -> NeuralResult<Self::Output>

Implementors§