src/orion/serving/experiments_resource.py
def _retrieve_algorithm(experiment: Experiment) -> dict:
    """Populates the `algorithm` key with the configuration of the experiment's algorithm."""
    algorithm_name = list(experiment.algorithms.configuration.keys())[0]

    result = {"name": algorithm_name}
    result.update(experiment.algorithms.configuration[algorithm_name])
    return result
Populates the `algorithm` key with the configuration of the experiment's algorithm.
Populates the `algorithm` key with the configuration of the experiment's algorithm.
Populates the ` algorithm ` key with the configuration of the experiment ' s algorithm .
def _retrieve_algorithm(experiment: Experiment) -> dict:
    algorithm_name = list(experiment.algorithms.configuration.keys())[0]
    result = {"name": algorithm_name}
    result.update(experiment.algorithms.configuration[algorithm_name])
    return result
def _retrieve_algorithm ( experiment : Experiment ) -> dict : algorithm_name = list ( experiment . algorithms . configuration . keys ( ) ) [ 0 ] result = { "name" : algorithm_name } result . update ( experiment . algorithms . configuration [ algorithm_name ] ) return result
Populates the `algorithm` key with the configuration of the experiment's algorithm.
Populates the ` algorithm ` key with the configuration of the experiment ' s algorithm .
"""Populates the `algorithm` key with the configuration of the experiment's algorithm."""
experiment
Experiment