All Optimizers

Subpackages

Submodules

hyponic.hyponic module

class hyponic.hyponic.HypONIC(Hyperparameter Optimization using Nature-Inspired Computing)[source]

Bases: object

Main class for hyperparameter optimization.

static warn_not_optimized(func)[source]

Decorator that warns if a method is called before optimization.

hyponic.space module

This module contains the Space class, which is used to define the search space.

class hyponic.space.Space(in_dict: dict[str, Any])[source]

Bases: object

A class that represents the search space of a hyperparameter optimization problem.

get_continuous_mappings(scales: dict | int | float = None, origins: dict | int | float = None) dict[str, (typing.Callable, (<class 'float'>, <class 'float'>))][source]

Returns a function that maps a discrete value to a continuous value.

map_to_original_space(values: list[float]) dict[str, Any][source]

Maps a list of values from the continuous space to the original space.