ray.tune.schedulers.TrialScheduler
ray.tune.schedulers.TrialScheduler#
- class ray.tune.schedulers.TrialScheduler[source]#
Bases:
object
Interface for implementing a Trial Scheduler class.
DeveloperAPI: This API may change across minor Ray releases.
Methods
__init__
()choose_trial_to_run
(trial_runner)Called to choose a new trial to run.
Returns a human readable message for printing to the console.
on_trial_add
(trial_runner, trial)Called when a new trial is added to the trial runner.
on_trial_complete
(trial_runner, trial, result)Notification for the completion of trial.
on_trial_error
(trial_runner, trial)Notification for the error of trial.
on_trial_remove
(trial_runner, trial)Called to remove trial.
on_trial_result
(trial_runner, trial, result)Called on each intermediate result returned by a trial.
restore
(checkpoint_path)Restore trial scheduler from checkpoint.
save
(checkpoint_path)Save trial scheduler to a checkpoint
set_search_properties
(metric, mode, **spec)Pass search properties to scheduler.
Attributes
Status for continuing trial execution
Status for pausing trial execution
Status for stopping trial execution