【问题标题】:Failed tests while testing scikit-learn install by means of nose通过鼻子测试 scikit-learn 安装时测试失败
【发布时间】:2013-10-14 10:24:36
【问题描述】:

我在通过鼻子测试 scikit-learn 安装时遇到以下错误:

ERROR: sklearn.utils.tests.test_sparsefuncs.test_densify_rows
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python33\lib\site-packages\nose\case.py", line 198, in runTest
    self.test(*self.arg)
  File "C:\Python33\lib\site-packages\sklearn\utils\tests\test_sparsefuncs.py",
line 40, in test_densify_rows
    assign_rows_csr(X, rows, np.arange(out.shape[0])[::-1], out)
  File "sparsefuncs.pyx", line 300, in sklearn.utils.sparsefuncs.assign_rows_csr
 (sklearn\utils\sparsefuncs.c:4029)
ValueError: Buffer dtype mismatch, expected 'npy_intp' but got 'long'

我想我的问题是这是否是一个小问题并且很容易被忽视?

环境:

  • Windows 7 64 位
  • Python 3.3

命令:nosetests sklearn --exe

提前致谢

【问题讨论】:

  • 这是唯一的失败吗?无论如何,它只会伤害 minibatch k-means 算法。

标签: python scikit-learn


【解决方案1】:

您应该阅读http://sourceforge.net/mailarchive/forum.php?thread_name=20130801045732.GB12916%40phare.normalesup.org&forum_name=scikit-learn-general。这似乎不是一个(大)问题。引用相关部分

这是个好消息。问题相当小。不要担心 问题。这些失败的测试在数值上是不稳定的。我们会看到什么 我们可以解决它们,但它们不是释放阻止程序。好消息是 我们没有重大的建筑或连接问题。

上述链接中失败的测试之一就是你失败的测试。

【讨论】:

  • 错过了那个。谢谢
猜你喜欢
  • 2015-07-06
  • 1970-01-01
  • 2016-05-17
  • 2012-10-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多