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.

Raises

ValueError – If the unknown class is specified.

Return type

optuna.distributions.BaseDistribution