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