Primary algorithm

TODO

Utility function for creating and wrapping the HPO algorithm.

orion.core.worker.primary_algo.create_algo(algo_type: Callable[[Space, P], AlgoT], space: Space, knowledge_base: None = None, *algo_args: P.args, **algo_kwargs: P.kwargs) InsistSuggest[SpaceTransform[AlgoT]][source]
orion.core.worker.primary_algo.create_algo(algo_type: Callable[[Space, P], WarmStarteableAlgoT], space: Space, knowledge_base: KnowledgeBase, *algo_args: P.args, **algo_kwargs: P.kwargs) InsistSuggest[SpaceTransform[WarmStarteableAlgoT]]
orion.core.worker.primary_algo.create_algo(algo_type: Callable[[Space, P], AlgoT], space: Space, knowledge_base: KnowledgeBase, *algo_args: P.args, **algo_kwargs: P.kwargs) MultiTaskWrapper[InsistSuggest[SpaceTransform[AlgoT]]]

Adds different wrappers on top of an algorithm of type algo_type before it gets used.

These wrappers are used to: - apply the transformations required for the algorithm to be applied to the given search space; - If a knowledge base is passed, and the algorithm isn’t warmstarteable, the algo is wrapped

with a MultiTaskWrapper;

  • Make sure that calls to returned algo’s suggest method returns a Trial, by trying a few times.

Parameters
algo_type

Type of algorithm to create and wrap.

space

The (original, un-transformed) search space.

knowledge_base

The Knowledge base to use for warm-starting of the algorithm, by default None.

Returns
An AlgoWrapper around the algorithm of type algo_type.