optuna.distributions
The distributions
module defines various classes representing probability distributions, mainly used to suggest initial hyperparameter values for an optimization trial. Distribution classes inherit from a library-internal BaseDistribution
, and is initialized with specific parameters, such as the low
and high
endpoints for a IntDistribution
.
Optuna users should not use distribution classes directly, but instead use utility functions provided by Trial
such as suggest_int()
.
A distribution on floats. |
|
A distribution on integers. |
|
A categorical distribution. |
|
Serialize a distribution to JSON format. |
|
Deserialize a distribution in JSON format. |
|
A function to check compatibility of two distributions. |
The following classes are deprecated and will be removed in the future.
A uniform distribution in the linear domain. |
|
A uniform distribution in the log domain. |
|
A discretized uniform distribution in the linear domain. |
|
A uniform distribution on integers. |
|
A uniform distribution on integers in the log domain. |