【问题标题】:something errors were thrown out when I was testing the scikit-learn with nosetests当我用鼻子测试测试 scikit-learn 时抛出了一些错误
【发布时间】:2015-07-06 03:42:43
【问题描述】:

我找不到如何解决如下问题。 mac 是 OS 10.10.3,python 是 2.7.6(mac 中的原始版本)。一路上scikit-learn就是这么顺利,除了测试。我根本无法理解错误...

故障如下:

================================================ ========================

失败:sklearn.feature_extraction.tests.test_image.test_connect_regions

Traceback(最近一次调用最后一次): 文件“/Library/Python/2.7/site-packages/nose-1.3.6-py2.7.egg/nose/case.py”,第 197 行,在 runTest self.test(*self.arg) 文件“/Library/Python/2.7/site-packages/sklearn/feature_extraction/tests/test_image.py”,第 63 行,在 test_connect_regions assert_equal(ndimage.label(mask)[1], connected_components(graph)[0]) 断言错误:777 != 767

================================================ ========================

失败:sklearn.feature_extraction.tests.test_image.test_connect_regions_with_grid

Traceback(最近一次调用最后一次): 文件“/Library/Python/2.7/site-packages/nose-1.3.6-py2.7.egg/nose/case.py”,第 197 行,在 runTest self.test(*self.arg) 文件“/Library/Python/2.7/site-packages/sklearn/feature_extraction/tests/test_image.py”,第 70 行,在 test_connect_regions_with_grid assert_equal(ndimage.label(mask)[1], connected_components(graph)[0]) 断言错误:777 != 767


【问题讨论】:

    标签: python-2.7 scikit-learn nosetests


    【解决方案1】:

    这是由 scipy 中的错误引起的。升级 scipy,它就会消失。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-09
      • 2018-01-09
      • 2018-09-02
      相关资源
      最近更新 更多