Skip to main content

EarlyStoppingStrategy

Trait EarlyStoppingStrategy 

pub trait EarlyStoppingStrategy: Send {
    // Required method
    fn should_stop(&mut self, epoch: usize, store: &EventStoreClient) -> bool;
}
Expand description

A strategy that checks if the training should be stopped.

Required Methods§

fn should_stop(&mut self, epoch: usize, store: &EventStoreClient) -> bool

Update its current state and returns if the training should be stopped.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§