src/orion/serving/experiments_resource.py
def _retrieve_best_trial(experiment: Experiment) -> Optional[Trial]:
    """Constructs the view of the best trial if there is one"""
    if not experiment.stats:
        return None

    return experiment.get_trial(uid=experiment.stats["best_trials_id"])
Constructs the view of the best trial if there is one
Constructs the view of the best trial if there is one
Constructs the view of the best trial if there is one
def _retrieve_best_trial(experiment: Experiment) -> Optional[Trial]:
    if not experiment.stats:
        return None
    return experiment.get_trial(uid=experiment.stats["best_trials_id"])
def _retrieve_best_trial ( experiment : Experiment ) -> Optional [ Trial ] : if not experiment . stats : return None return experiment . get_trial ( uid = experiment . stats [ "best_trials_id" ] )
Constructs the view of the best trial if there is one
Constructs the view of the best trial if there is one
"""Constructs the view of the best trial if there is one"""
experiment
Experiment