ludwig
ludwig copied to clipboard
Allow early stop based on walltime since improvement
This PR:
- stores the Posix timestamp of the last improvement in ProgressTracker
- adds a convenience callback implementing
should_early_stop
that returns True if the given timeout has been reached and no improvement has been made for the given early stopping steps