8000 TST attempt to fix the variance threshold part of #14192 by jnothman · Pull Request #14204 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

TST attempt to fix the variance threshold part of #14192 #14204

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

Merged
merged 1 commit into from
Jun 27, 2019

Conversation

jnothman
Copy link
Member

Nightly builds are failing on this assertion (#14192) which was only intended to prove that the test's primary assertion, below it, is actually valid.

@@ -38,7 +38,9 @@ def test_zero_variance_floating_point_error():
# See #13691

data = [[-0.13725701]] * 10
Copy link
Member
@rth rth Jun 27, 2019

Choose a reason for hiding this comment

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

Maybe using,

Suggested change
data = [[-0.13725701]] * 10
data = np.full((10, 1), -0.13725701)

would be better anyway?

Copy link
Member
@qinhanmin2014 qinhanmin2014 left a comment

Choose a reason for hiding this comment

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

LGTM but honestly I'd rather remove the test. The test seems easy to fail. We've fixed that bug and I think it's enough.

@jnothman
Copy link
Member Author
jnothman commented Jun 27, 2019 via email

@qinhanmin2014
Copy link
Member

tests fail @jnothman (no ladder on my ipad so can't access azure, sigh...)

@rth
Copy link
Member
rth commented Jun 27, 2019

Failure in test_linearsvc_parameters in one job is unrelated. Merging. Thanks!

@rth rth merged commit f339609 into scikit-learn:master Jun 27, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0