EventProcessorTraining

Trait EventProcessorTraining 

Source
pub trait EventProcessorTraining: Send {
    type ItemTrain: ItemLazy;
    type ItemValid: ItemLazy;

    // Required methods
    fn process_train(&mut self, event: LearnerEvent<Self::ItemTrain>);
    fn process_valid(&mut self, event: LearnerEvent<Self::ItemValid>);
    fn renderer(self) -> Box<dyn MetricsRenderer>;
}
Expand description

Process events happening during training and validation.

Required Associated Types§

Source

type ItemTrain: ItemLazy

The training item.

Source

type ItemValid: ItemLazy

The validation item.

Required Methods§

Source

fn process_train(&mut self, event: LearnerEvent<Self::ItemTrain>)

Collect a training event.

Source

fn process_valid(&mut self, event: LearnerEvent<Self::ItemValid>)

Collect a validation event.

Source

fn renderer(self) -> Box<dyn MetricsRenderer>

Returns the renderer used for training.

Implementors§