examples-in-python icon indicating copy to clipboard operation
examples-in-python copied to clipboard

SVM test_spars gives random results with Python 3.5

Open alpo opened this issue 8 years ago • 0 comments

in test_spars list(xes.indices)) AssertionError: Lists differ: [0, 1, 2, 3] != [1, 3, 0, 2]

It can be related to different dictionary keys order in Python 2.7 (scrambled) and Python 3.5 (randomized). In Python 3.6 (ordered) the result can differ. It is hidden in internals of scipy.sparse.csr_martix perhaps. Investigation required.

alpo avatar Aug 07 '17 21:08 alpo