Trait vikos::Teacher

source ·
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§

Contains state which changes during the training, but is not part of the expertise

Examples are the velocity of the coefficients (in stochastic gradient descent) or the number of events already learned. This may also be empty

Required Methods§

Creates an instance holding all mutable state of the algorithm

Changes models coefficients so they minimize the cost function (hopefully)

Implementors§