xgboost 无法在 ipython 笔记本中导入属性
xgboost cannot import attributes in ipython notebook
我已经安装了 xgboost,它在我的 python 终端和我的 ipython 笔记本上都运行良好。但突然间我开始在 ipython 笔记本上遇到问题。
当我输入 xgb.DMatrix
我在 ipython 中得到 module 'xgboost' has no attribute 'DMatrix'
但在 python 终端上我得到 <class 'xgboost.core.DMatrix'>
。实际上 none 的属性正在 ipython.
我已经尝试删除 xgboost 文件夹并重新下载它,但问题仍然存在。
我不认为这是一个重复的问题,因为我已经提到过:
一个。它在 python 终端中工作正常,但在 ipython notebook
中不工作
b。 OP(AttributeError: module ‘xgboost’ has no attribute ‘XGBRegressor’)
的问题仍未解决
我通过删除xgboost文件夹并根据此重新安装解决了问题post
我已经安装了 xgboost,它在我的 python 终端和我的 ipython 笔记本上都运行良好。但突然间我开始在 ipython 笔记本上遇到问题。
当我输入 xgb.DMatrix
我在 ipython 中得到 module 'xgboost' has no attribute 'DMatrix'
但在 python 终端上我得到 <class 'xgboost.core.DMatrix'>
。实际上 none 的属性正在 ipython.
我已经尝试删除 xgboost 文件夹并重新下载它,但问题仍然存在。
我不认为这是一个重复的问题,因为我已经提到过:
一个。它在 python 终端中工作正常,但在 ipython notebook
中不工作b。 OP(AttributeError: module ‘xgboost’ has no attribute ‘XGBRegressor’)
的问题仍未解决我通过删除xgboost文件夹并根据此重新安装解决了问题post