Format trials¶
orion.core.utils.format_trials
– Utility functions for formatting data¶
-
orion.core.utils.format_trials.
dict_to_trial
(data, space)[source]¶ Create a
orion.core.worker.trial.Trial
object from data, filling only parameter information from data.Parameters: - data – A dict representing a sample point from space.
- space (
orion.algo.space.Space
) – Definition of problem’s domain.
-
orion.core.utils.format_trials.
get_trial_results
(trial)[source]¶ Format results from a
Trial
using standard structures.
-
orion.core.utils.format_trials.
standard_param_name
(name)[source]¶ Convert parameter name to namespace format
-
orion.core.utils.format_trials.
trial_to_tuple
(trial, space)[source]¶ Extract a parameter tuple from a
orion.core.worker.trial.Trial
.The order within the tuple is dictated by the defined
orion.algo.space.Space
object.
-
orion.core.utils.format_trials.
tuple_to_trial
(data, space)[source]¶ Create a
orion.core.worker.trial.Trial
object from data, filling only parameter information from data.Parameters: - data – A tuple representing a sample point from space.
- space (
orion.algo.space.Space
) – Definition of problem’s domain.