service

bojaxns.service

Module Contents

exception InvalidTrial[source]

Bases: Exception

Common base class for all non-exit exceptions.

Initialize self. See help(type(self)) for accurate signature.

class BayesianOptimisation(experiment)[source]
Parameters:

experiment (bojaxns.experiment.OptimisationExperiment) –

property experiment[source]
classmethod create_new_experiment(new_experiment)[source]
Parameters:

new_experiment (bojaxns.experiment.NewExperimentRequest) –

Return type:

BayesianOptimisation

add_trial_from_data(key, param_values)[source]
Parameters:
  • key (jax._src.random.PRNGKey) –

  • param_values (bojaxns.common.ParamValues) –

Return type:

str

create_new_trial(key, random_explore=False, beta=0.5)[source]
Parameters:
  • key (jax._src.random.PRNGKey) –

  • random_explore (bool) –

  • beta (float) –

Return type:

str

get_trial(trial_id)[source]
Parameters:

trial_id (str) –

Return type:

bojaxns.experiment.Trial

delete_trial(trial_id)[source]
Parameters:

trial_id (str) –

post_measurement(trial_id, trial_update)[source]
Parameters:
trial_size(trial_id)[source]
Parameters:

trial_id (str) –

visualise(main_color='#7e97bf', grid_color='#969396')[source]

Constructs a visual breakdown of condition

Parameters:
  • main_color – color of main axes

  • grid_color – color of grid

Returns:

a pylab Figure

Raises:

NotEnoughData if not enough to compute a breakdown

Return type:

pylab.Figure