Test failure in scikits/crab/recommenders/svd/tests/test_classes.py #82

Closed
tkamishima opened this Issue Mar 11, 2012 · 0 comments

Comments

Projects
None yet
1 participant

Test fails due to the order of elements in a array in line 214, maybe because scores of those recommended items are equal. This issue can be fixed by sorting before comparison:

@@ -213,3 +213,3 @@
     assert_array_equal(np.array(['Just My Luck', 'You, Me and Dupree']), \
-    recsys.recommend('Leopoldo Pires'))
+    np.sort(recsys.recommend('Leopoldo Pires')))

However, the test fails also in line 222 because of the same reason as above. I have no idea to fix this issue.

panisson added a commit to panisson/crab that referenced this issue Sep 25, 2012

@tkamishima tkamishima closed this May 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment