pub trait ModelTrainer {
// Required methods
fn train(
&self,
examples: &[TrainingExample],
config: &TrainingConfig,
) -> Result<Box<dyn TrainedModel>, TrainingError>;
fn cross_validate(
&self,
examples: &[TrainingExample],
config: &TrainingConfig,
) -> Result<CrossValidationResults, TrainingError>;
}Expand description
Model trainer trait