optuna.distributions.check_distribution_compatibility
- optuna.distributions.check_distribution_compatibility(dist_old, dist_new)[source]
A function to check compatibility of two distributions.
It checks whether
dist_old
anddist_new
are the same kind of distributions. Ifdist_old
isCategoricalDistribution
, it further checkschoices
are the same betweendist_old
anddist_new
. Note that this method is not supposed to be called by library users.- Parameters:
dist_old (BaseDistribution) – A distribution previously recorded in storage.
dist_new (BaseDistribution) – A distribution newly added to storage.
- Return type:
None