Producer

TODO

Produce and register samples to try

Suggest new parameter sets which optimize the objective.

class orion.core.worker.producer.Producer(experiment, max_idle_time=None)[source]

Produce suggested sets of problem’s parameter space to try out.

It uses an Experiment object to poll for not yet observed trials which have been already evaluated and to register new suggestions (points of the parameter Space) to be evaluated.

Attributes
is_done

Whether experiment or naive algorithm is done

pool_size

Pool-size of the experiment

Methods

backoff()

Wait some time and update algorithm.

produce()

Create and register new trials.

register_trial(new_point)

Register a new set of sampled parameters into the DB guaranteeing their uniqueness

register_trials(new_points)

Register new sets of sampled parameters into the DB guaranteeing their uniqueness

suggest()

Try suggesting new points with the naive algorithm

update()

Pull all trials to update model with completed ones and naive model with non completed ones.

backoff()[source]

Wait some time and update algorithm.

property is_done

Whether experiment or naive algorithm is done

property pool_size

Pool-size of the experiment

produce()[source]

Create and register new trials.

register_trial(new_point)[source]

Register a new set of sampled parameters into the DB guaranteeing their uniqueness

Parameters
new_point: tuple

tuple of values representing the hyperparameters values

register_trials(new_points)[source]

Register new sets of sampled parameters into the DB guaranteeing their uniqueness

suggest()[source]

Try suggesting new points with the naive algorithm

update()[source]

Pull all trials to update model with completed ones and naive model with non completed ones.