choose_trial_to_run#
- PopulationBasedTraining.choose_trial_to_run(tune_controller: TuneController) Trial | None[source]#
Ensures all trials get fair share of time (as defined by time_attr).
This enables the PBT scheduler to support a greater number of concurrent trials than can fit in the cluster at any given time.
- Parameters:
tune_controller (TuneController) – The controller running the experiment.
- Returns:
The
PENDINGorPAUSEDtrial with the lowesttime_attrvalue as of its last perturbation interval, orNoneif there’s none. In synchronous mode, only trials that haven’t reached the next perturbation point are candidates.- Return type:
Trial | None