pub trait Teacher<M: Model> {
type Training;
// Required methods
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.