-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[python] bring pandas support to the sklearn wrapper back #904
Conversation
@StrikerRUS, |
aren't there too many tests now? @guolinke |
@wxchan @StrikerRUS |
@guolinke can we disable if-else test on osx? |
@wxchan yeah |
@guolinke @wxchan The current total runtime of Appveyor and Travis is approximately equal (if there are no issues on the Travis side :) ) that I think is reasonable. In addition, Travis jobs run in parallel mode (practically all osx-jobs starts at the same time), so it will be no significant reduction of the runtime. In my opinion, if-else case on OSX could be disabled but all other tests are important. |
@StrikerRUS |
@guolinke I believe that it was a sporadic case of Travis OSX freezes. |
np.testing.assert_almost_equal(pred0, pred1) | ||
np.testing.assert_almost_equal(pred0, pred2) | ||
np.testing.assert_almost_equal(pred0, pred3) | ||
np.testing.assert_almost_equal(pred0, pred4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wxchan I can't find out what's wrong with the last test. Can you please help me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is because gbm4
isn't regarded as Classifier or pred4
are probabilities, not labels of class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@henry0312 Of course, it's probabilities! How could I be so inattentive?..
Thank you very much!
I think it's better to run tests with Python 2.7, 3.4, 3.5 and 3.6 and we should run the regular test with Python 2.7.x and 3.6.x at least. > #904 (comment), #904 (comment) Additionaly, as @StrikerRUS pointed out, even if we remove some tests of OSX, the total time of tests won't change. |
@guolinke please run travis ci manually. there was something wrong. |
any updates of this ? ready to merge ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* added test for sklearn handle categorical features * use raw X, y in sklearn wrapper in case of pandas.DataFrame * fixed probs
My fault is that in recent PR with sklearn compatibility I forgot about pandas support. This PR is expected to bring pandas support back to the sklearn wrapper.
Fix #901 .
Since scikit-learn has poor pandas support, I think that the best thing to do is just pass
pandas.DataFrame
to Booster as is.