example_bayesian_optimization_runner
Example Bayesian optimization runner
ExampleBayesianOptimizationRunner
ExampleBayesianOptimizationRunner(*args, **kwargs)
Bases: Runner
ExampleBayesianOptimizationRunner: a simple Runner that implements a 1D double Gaussian with a background slope to test the BayesianOptimizationSampler.
kwargs
model_parameters - vector of model parameters [a, g11, g12, g13, g21, g22, g23]: y = ax + g11np.exp(-(x - g13)2/g12) + g21*np.exp(-(x - g23)2/g22)
Returns a dictionary of containing the output and True for success. Future developments can include synthetic failure implementations.
Source code in src/enchanted_surrogates/runners/example_bayesian_optimization_runner.py
25 26 27 28 | |
single_code_run
single_code_run(run_dir, params=None)
Execute a single example run in run_dir and
return a simple results dictionary.
Source code in src/enchanted_surrogates/runners/example_bayesian_optimization_runner.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |