optuna.distributions.distribution_to_json

optuna.distributions.distribution_to_json(dist)[source]

Serialize a distribution to JSON format.

Parameters:

dist (BaseDistribution) – A distribution to be serialized.

Returns:

A JSON string of a given distribution.

Return type:

str