muricoca / crab

Crab is a flexible, fast recommender engine for Python that integrates classic information filtering recommendation algorithms in the world of scientific Python packages (numpy, scipy, matplotlib).

Home Page:http://muricoca.github.com/crab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

tkamishima opened this issue · comments

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.