MRG FIX for iid weighting in grid-search#1731
MRG FIX for iid weighting in grid-search#1731amueller wants to merge 2 commits intoscikit-learn:masterfrom
Conversation
There was a problem hiding this comment.
We will get rounding errors: computers have finite precisions. We cannot expect all platform to round stuff exactly the same way at the 17th place, can we? I think we should expect:
0.9889999999999... # doctest: +ELLIPSIS
There was a problem hiding this comment.
Ok, then I'll change all the tests in the file...
There was a problem hiding this comment.
The other numbers in the file seemed not to be periodic, so I kept them.
|
That looks good. Maybe @agramfort can you check this fix? I think you were the original author of the iid flag. |
|
rebased to fix merging trouble |
|
This all looks well to me and the test is good too. it's ready for merge, right? :) |
|
Yes, should be good. I agree with @ogrisel that it would be nice to have @agramfort's 👍 but I'm not sure he is available / has time. |
|
merged by rebase after fixing the typo. |
|
Thanks :) |
This is a fix for the iid weighting in GridSearchCV. It could be that I screwed this up before, but didn't notice as there was no test.