-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Pandas gives 600 line long ValueError while runing sklearn GridSearchCV #9928
Comments
A few thoughts. First, this is just as much if not more a scikit learn issue than a pandas issue -- last time I checked they didn't support dataframes as native input. Second, as a work around, try passing X.values and y.values -- that would help identify if this is really something related to pandas or not. If it does seem to be an issue that only appears when both pandas and scikit learn are combined, it would help if you could provide a full example that reproduces it, including input data. |
As you suggested, X.values and y.values seem to be solving this issue. Thanks for your quick response and support! |
@shoyer I agree this is a sklearn issue. We should support pd dataframes as of 0.16. I'll check where we messed up. |
@amueller thank you |
I am using sklearn GridSearchCV to classify some data. When I run this code, pandas gives 600 line long error. If I set n_jobs=1, it runs fine without any error. Please kindly take a look at it. Thanks
Error message
pd.show_versions()
The text was updated successfully, but these errors were encountered: