optuna.distributions.json_to_distribution

optuna.distributions.json_to_distribution(json_str)[source]

Deserialize a distribution in JSON format.

Parameters:

json_str (str) – A JSON-serialized distribution.

Returns:

A deserialized distribution.

Return type:

BaseDistribution