optuna.distributions.check_distribution_compatibility¶

optuna.distributions.check_distribution_compatibility(dist_old: optuna.distributions.BaseDistribution, dist_new: optuna.distributions.BaseDistribution)None[source]

A function to check compatibility of two distributions.

Note that this method is not supposed to be called by library users.

Parameters
• dist_old – A distribution previously recorded in storage.

• dist_new – A distribution newly added to storage.

Returns

True denotes given distributions are compatible. Otherwise, they are not.