Base definition of tasks

Base definition of Task

class orion.benchmark.task.base.BaseTask(max_trials, **kwargs)[source]

Base class describing what a task can do. A task will define the objective function and search space of it.

Parameters:
max_trials : int

Max number of trials the experiment will run against this task.

kwargs : dict

Configurable parameters of the task, a particular task implementation can have its own parameters.

Attributes:
configuration

Return the configuration of the task.

max_trials

Return the max number of trials to run for the

Methods

__call__(*args, **kwargs) All tasks will be callable by default, and method call() will be executed when a task is called directly.
call(*args, **kwargs) Define the black box function to optimize, the function will expect hyper-parameters to search and return objective values of trial with the hyper-parameters.
get_search_space() Return the search space for the task objective function
call(*args, **kwargs)[source]

Define the black box function to optimize, the function will expect hyper-parameters to search and return objective values of trial with the hyper-parameters.

configuration

Return the configuration of the task.

get_search_space()[source]

Return the search space for the task objective function

max_trials

Return the max number of trials to run for the

class orion.benchmark.task.base.BenchmarkTask(max_trials, **kwargs)[source]

Class used to inject dependency on an task implementation.