scikit-learn svmlight 格式加载器中的弃用警告 [英] Deprecation warning in scikit-learn svmlight format loader

查看:52
本文介绍了scikit-learn svmlight 格式加载器中的弃用警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在之前从未见过的 IPython 笔记本中收到了新的弃用警告.我看到的是以下内容:

I'm getting a new deprecation warning in an IPython notebook I wrote that I've not seen before. What I'm seeing is the following:

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 的 0.14.1 版.

Any thoughts on what might be the issue here? I took another look at my data file and at first glance, I don't see any obvious issue. I'm not sure what I changed in my system setup that would have caused this. I've got v. 0.14.1 of scikit-learn installed.

推荐答案

您可能升级了 numpy 版本,因为这是 numpy 1.8.0 弃用警告.在这个拉取请求中进行了解释.继续这个 PR.

You probably upgraded the numpy version, as this is a numpy 1.8.0 deprecation warning. Explained in this pull request. Continuation in this PR.

简单浏览sklearn 问题跟踪器,没发现相关问题.如果找不到,您可能可以更好地搜索并提交错误报告.

Briefly browsing the sklearn issue tracker, I haven't found any related issues. You can probably search better and file a bug report if not found.

这篇关于scikit-learn svmlight 格式加载器中的弃用警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆