Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FIX unstable test due to bootstrap and unset random state #5242

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
Sep 11, 2015

Conversation

arjoly
Copy link
Member

@arjoly arjoly commented Sep 10, 2015

superseed of #5240 with only the required fix.
FIX unstable test as descibe in #5239

@arjoly
Copy link
Member Author

arjoly commented Sep 10, 2015

Ping @glouppe @jmschrei

@jmschrei
Copy link
Member

Looks good to me, +1

@amueller
Copy link
Member

That should also work with bootstrapping, right? It does on my box.

@amueller
Copy link
Member

Not sure if I understand https://github.com/scikit-learn/scikit-learn/pull/5240/files#r39152326. Why would it fail with changes?

@arjoly
Copy link
Member Author

arjoly commented Sep 11, 2015

Not sure if I understand https://github.com/scikit-learn/scikit-learn/pull/5240/files#r39152326. Why would it fail with changes?

For numerical reasons, the new test doesn't highlight some numerical discrepancy in the numerical importance. Our conclusion is that the current test are too weak to detect some numerical error.
@glouppe said that he would bring new tests to ensure correctness.

@arjoly
Copy link
Member Author

arjoly commented Sep 11, 2015

That should also work with bootstrapping, right? It does on my box.

This depends on the samples that are drawn for the 10 trees. I have preferred to be correct all the time instead of depending on some randomisations.

@glouppe
Copy link
Contributor

glouppe commented Sep 11, 2015

+1 for improving the stability of this particular test. I am merging.

glouppe added a commit that referenced this pull request Sep 11, 2015
FIX unstable test due to bootstrap and unset random state
@glouppe glouppe merged commit 7e2453a into scikit-learn:master Sep 11, 2015
@arjoly arjoly deleted the stable-test-2 branch September 11, 2015 07:22
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.

4 participants