-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
test_fit_csr_matrix failing on Linux py35_conda_openblas #14168
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
My fault, looks like the change in #14136 was a bit too brittle, def test_fit_csr_matrix():
# X can be a sparse matrix.
random_state = check_random_state(0)
- X = random_state.randn(100, 2)
- X[(np.random.randint(0, 100, 50), np.random.randint(0, 2, 50))] = 0.0
+ X = random_state.randn(50, 2)
+ X[(np.random.randint(0, 50, 25), np.random.randint(0, 2, 25))] = 0.0
X_csr = sp.csr_matrix(X)
tsne = TSNE(n_components=2, perplexity=10, learning_rate=100.0,
- random_state=0, method='exact')
+ random_state=0, method='exact', n_iter=500) that's the unfortunate risk that goes with tests optimizations.. Will make a PR. |
It is interesting that it doesn't seem to be fully deterministic as well. |
ping @rth @thomasjpfan
rtol=0.11? that's surprising. |
Yeah, it's a lot. It was there before. When I run this locally in Py3.7 and latest numpy I get I'm not quite sure where why this would fail with I don't this that increasing tolerance further is a solution. Increasing the data size might be one, or maybe we could side-step this by dropping python 3.5 in #15106 |
Azure is choking on this tSNE test. I don't think we've changed anything here recently.
Versions:
The text was updated successfully, but these errors were encountered: