Trait vikos::Teacher
[−]
[src]
pub trait Teacher<M: Model> { type Training: Training<Model=M>; fn new_training(&self, model: &M) -> Self::Training; }
Teachers
are used to train Models
, based on events and a Cost
function
Associated Types
type Training: Training<Model=M>
Contains state which changes during the training, but is not required by the expert
Examples are the velocity of the coefficents (in SGD) or the number of events already learned. This may also be empty
Required Methods
fn new_training(&self, model: &M) -> Self::Training
Creates a new Training
object to hold training state
Implementors
impl<F, M> Teacher<M> for GradientDescent<F> where F: Float, M: Model<Target=F>
impl<F, M> Teacher<M> for GradientDescentAl<F> where F: Float, M: Model<Target=F>
impl<F, M> Teacher<M> for Momentum<F> where F: Float, M: Model<Target=F>