cotengra.hyperoptimizers.hyper_cmaes¶
Hyper parameter optimization using cmaes, as implemented by
https://github.com/CyberAgentAILab/cmaes.
Classes¶
Hyper-optimization using CMA-ES with per-method optimizers and |
Module Contents¶
- class cotengra.hyperoptimizers.hyper_cmaes.HyperCMAESSampler(space, sigma=1.0, lr_adapt=True, separable=False, exponential_param_power=None, **kwargs)[source]¶
- params = []¶
- opt¶
- _trial_counter = 0¶
- _trial_store¶
- _batch = []¶
- class cotengra.hyperoptimizers.hyper_cmaes.CMAESOptLib[source]¶
Bases:
cotengra.hyperoptimizers.hyper.HyperOptLibHyper-optimization using CMA-ES with per-method optimizers and a Lower Confidence Bound method selector.
- setup(methods, space, optimizer=None, sigma=1.0, lr_adapt=True, method_exploration=1.0, method_temperature=1.0, exponential_param_power=None, **cmaes_opts)[source]¶
Initialize the optimizer state.
- Parameters:
methods (list[str]) – The list of contraction methods to optimize over.
space (dict[str, dict[str, dict]]) – The search space for each method.
optimizer (HyperOptimizer, optional) – The parent
HyperOptimizerinstance, for accessing attributes likemax_repeats.kwargs – Extra options specific to the optimizer library.