QHyper.optimizers#
This module contains implementations of different optimizers. Some of the optimizers are written from scratch based on popular algorithms, while others are just a wrapper for existing solutions. No optimizer is imported by deafult to reduce number of dependencies. To use any optimizer you can import it directly like
from QHyper.optimizers.random import Random
or use function Optimizers.get() with the name of the optimizer.
Any optimizer that is in directory ‘QHyper/custom’ or ‘custom’ will be
also available in this function.
Optimization result dataclass
|
Dataclass for storing the results of an optimization run. |
|
Dataclass for storing bounds, steps and init values for parameters that might be optimized. |
Interface
Base class for Optimizer. |
Available optimizers
|
Class for the SciPy minimizer. |
Gradient Descent Optimizer |
|
|
Implementation of the Cross Entropy Method for hyperparameter tuning |
|
Random optimizer |
|
Grid search optimizer |
Dummy optimizer. |
Additional functions