-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
test_metrics fails in Python 3.3 #1811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I guess we should use |
Wait, there is non-reproducable shuffling? Or is it just not the same shuffling that was giving previously? |
It is just not the same in Python < 3.3 and Python >= 3.3. |
Maybe we shouldn't rely on the outcome in the tests? I always feel that is a bit odd. |
Tried to fix the issue by turning to |
test_metrics.py now pass with Python 3.3, thanks! |
Random number generator changes per Python 3.3. Also, don't use unseeded np.random. Should fix #1811.
Many tests from test_metrics fails in Python 3.3.
I think some of them fails because of stdlib "random" module changes: given the same seed, random.shuffle produces different results in Python >= 3.3 and Python < 3.3, and test_metrics.make_prediction relies on random.seed(0) to get reproducible random.shuffle.
The text was updated successfully, but these errors were encountered: