optuna.visualization.matplotlib.is_available

optuna.visualization.matplotlib.is_available()[源代码]

Returns whether visualization with Matplotlib is available or not.

备注

matplotlib module depends on Matplotlib version 3.0.0 or higher. If a supported version of Matplotlib isn’t installed in your environment, this function will return False. In such a case, please execute $ pip install -U matplotlib>=3.0.0 to install Matplotlib.

返回

True if visualization with Matplotlib is available, False otherwise.

返回类型

bool

备注

Added in v2.2.0 as an experimental feature. The interface may change in newer versions without prior notice. See https://github.com/optuna/optuna/releases/tag/v2.2.0.