【发布时间】:2013-12-03 18:05:20
【问题描述】:
我在以前从未见过的 IPython 笔记本中收到了新的弃用警告。我看到的是以下内容:
X,y = load_svmlight_file('./GasSensorArray/batch2.dat')
/Users/cpd/.virtualenvs/py27-ipython+pandas/lib/python2.7/site-packages/sklearn/datasets/svmlight_format.py:137: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
return _load_svmlight_file(f, dtype, multilabel, zero_based, query_id)
/Users/cpd/.virtualenvs/py27-ipython+pandas/lib/python2.7/site-packages/sklearn/datasets/svmlight_format.py:137: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
return _load_svmlight_file(f, dtype, multilabel, zero_based, query_id)
...
对这里可能出现的问题有什么想法吗?我再次查看了我的数据文件,乍一看,我没有看到任何明显的问题。我不确定我在系统设置中所做的更改会导致这种情况。我已经安装了 scikit-learn v. 0.14.1。
【问题讨论】:
标签: python scikit-learn