Skip to content

[MRG+1] FIX common test failures on Windows#9115

Merged
jnothman merged 5 commits intoscikit-learn:masterfrom
jnothman:atol
Jun 14, 2017
Merged

[MRG+1] FIX common test failures on Windows#9115
jnothman merged 5 commits intoscikit-learn:masterfrom
jnothman:atol

Conversation

@jnothman
Copy link
Copy Markdown
Member

@jnothman jnothman commented Jun 13, 2017

Common tests require some absolute tolerance in array comparison for small numerical imprecisions

Partially fixes #9111.

Is 1e-9 sufficiently small? (Is it sufficiently large for AppVeyor to pass??? We'll see soon.)

Common tests require some absolute tolerance in array comparison for small numerical imprecisions
@jnothman jnothman added this to the 0.19 milestone Jun 13, 2017
@jnothman
Copy link
Copy Markdown
Member Author

The relevant tests are no longer failing. This is ready for review.

@jnothman jnothman changed the title FIX common test failures on Windows [MRG] FIX common test failures on Windows Jun 14, 2017
@lesteve
Copy link
Copy Markdown
Member

lesteve commented Jun 14, 2017

LGTM

@lesteve lesteve changed the title [MRG] FIX common test failures on Windows [MRG+1] FIX common test failures on Windows Jun 14, 2017


def assert_allclose_dense_sparse(x, y, rtol=1e-07, atol=0, err_msg=''):
def assert_allclose_dense_sparse(x, y, rtol=1e-07, atol=1e-9, err_msg=''):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually should we keep the same default as np.assert_allclose i.e. atol=0 and just use atol != 0 in the tests that need it?

@jnothman
Copy link
Copy Markdown
Member Author

jnothman commented Jun 14, 2017 via email

@lesteve
Copy link
Copy Markdown
Member

lesteve commented Jun 14, 2017

I pushed the change of threshold to 0.87 as mentioned in #9111 (comment). The tests should pass on AppVeyor.

@jnothman
Copy link
Copy Markdown
Member Author

I'm happy with this, but I'd like to seek @amueller's input, or someone else's.

@lesteve
Copy link
Copy Markdown
Member

lesteve commented Jun 14, 2017

I just got a +1 from @ogrisel IRL who said that we can merge this with an additional comment mentioning that 0.87 is due to LinearSVC on Windows. @jnothman is that good enough for you?

@jnothman
Copy link
Copy Markdown
Member Author

That sounds more than fine. I was about to say that we could merge in any case so that people can get green ticks and get feedback after the fact. :)

@jnothman jnothman merged commit f0c5568 into scikit-learn:master Jun 14, 2017
@amueller
Copy link
Copy Markdown
Member

thanks :) Sorry, have been trying to catch up with work after getting back.

dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
NelleV pushed a commit to NelleV/scikit-learn that referenced this pull request Aug 11, 2017
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
AishwaryaRK pushed a commit to AishwaryaRK/scikit-learn that referenced this pull request Aug 29, 2017
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
jwjohnson314 pushed a commit to jwjohnson314/scikit-learn that referenced this pull request Dec 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AppVeyor failures in common tests

3 participants