gpt4 book ai didi

python - scikit-learn svmlight 格式加载器中的弃用警告

转载 作者:太空狗 更新时间:2023-10-29 17:16:59 30 4
gpt4 key购买 nike

我在以前从未见过的 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。

最佳答案

您可能升级了 numpy 版本,因为这是一个 numpy 1.8.0 弃用警告。在 this 中解释拉取请求。继续 this公关。

简要浏览sklearn issue tracker ,我还没有发现任何相关的问题。如果找不到,您可能可以更好地搜索并提交错误报告。

关于python - scikit-learn svmlight 格式加载器中的弃用警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20084218/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com