pub trait Teacher<M: Model> {
type Training;
fn new_training(&self, model: &M) -> Self::Training;
fn teach_event<Y, C>(
&self,
training: &mut Self::Training,
model: &mut M,
cost: &C,
features: &M::Features,
truth: Y
)
where
C: Cost<Y, M::Target>,
Y: Copy;
}
Expand description
Algorithms used to adapt Model coefficients
Required Associated Types§
Required Methods§
sourcefn new_training(&self, model: &M) -> Self::Training
fn new_training(&self, model: &M) -> Self::Training
Creates an instance holding all mutable state of the algorithm