cotengra.hyperoptimizers.hyper_optuna¶
Hyper optimization using optuna.
Classes¶
Hyper-optimization using |
Functions¶
|
|
|
Module Contents¶
- class cotengra.hyperoptimizers.hyper_optuna.OptunaOptLib[source]¶
Bases:
cotengra.hyperoptimizers.hyper.HyperOptLibHyper-optimization using
optuna.- setup(methods, space, optimizer=None, sampler='TPESampler', sampler_opts=None, **create_study_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.