whl
安装了xgboost。当我尝试以下操作时:
import xgboost
我收到了以下信息:
d:\program files\python\lib\site-packages\sklearn\cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20. "This module will be removed in 0.20.", DeprecationWarning)
如果我在导入xgboost
之前打印import sklearn
,就不会出现这个消息。我认为这个消息不会影响结果,但怎样避免它呢?我也通过pip检查了所有软件包是否最新。