_检查_matplotlib#

pytorch_forecasting.utils._dependencies._check_matplotlib(ref='This feature', raise_error=True)[来源]#

检查是否安装了matplotlib。

Parameters:
  • ref (str, 可选 (默认="此特征")) – 需要 matplotlib 的特征的引用,用于错误消息

  • raise_error (bool, optional (default=True)) – 如果未安装matplotlib,是否引发错误

Returns:

布尔值

Return type:

是否安装了matplotlib