qewton.optim.tuner.tuning_callbacks package¶
Module contents¶
Submodules¶
qewton.optim.tuner.tuning_callbacks.early_stopping module¶
- class qewton.optim.tuner.tuning_callbacks.early_stopping.EarlyStoppingTuneCallback(monitor_constraint: Constraint, top_k: int = 10, persistence: int = 3, history_to_start: int = 10, check_interval: int = 100, priority: int = -5)[source]¶
Bases:
TuningCallbackA tuning callback that implements early stopping based on a specified constraint and threshold. If the monitored metric is worse then the average of the best percentile of the previous trials, this trial will be stopped early.
- on_training_start(state: TrainerState)[source]¶
- on_train_step_end(state: TrainerState)[source]¶