pub trait EarlyStoppingCallback {
// Required methods
fn on_iteration(&mut self, score: f64) -> Result<bool>;
fn on_early_stop(&mut self, reason: &str) -> Result<()>;
fn best_score(&self) -> f64;
fn convergence_info(&self) -> String;
}Expand description
Early stopping callback trait for use with optimizers