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_oldanddist_neware the same kind of distributions. Ifdist_oldisCategoricalDistribution, it further checkschoicesare the same betweendist_oldanddist_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