Format trials

orion.core.utils.format_trials – Utility functions for formatting data


Format results from a Trial using standard structures.


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 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.

  • data – A tuple representing a sample point from space.
  • space ( – Definition of problem’s domain.