-
Notifications
You must be signed in to change notification settings - Fork 334
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
TypeError: list indices must be integers or slices, not numpy.float64 #304
Comments
Hi @MohammedAlsayed, thanks for your feedback and appreciation for the library. Not sure if we should add this conversion into the library. Thanks, |
Hi @tlapusan, Thanks for your reply. I never faced this issue with other libraries like sklearn, or xgboost in binary classification even though my target is type float. I guess this library should be consistent with other libraries as well. It doesn't make sense that it works perfectly in other libraries then crashes here. However, if there is no desire to add this feature, then the error message should be more precise than what it shows. Since, it took me time to know what is the issue. |
Indeed @MohammedAlsayed, the error message should be more precise. If you can make a PR for this and display a more relevant error message it would help. |
@tlapusan I think I need to be added as a collaborator to be able to pull a request. Shall I pull on master or dev branch? |
Can you describe a little more what do you mean by collaborator ? anyone should have permission to make the PR. |
Hi Guys, thanks for creating this amazing library.
I'm using XGBoost Classifier in sklearn library, and I'm getting this error, because my target column is numpy.float64 type though I only have 1.0 and 0.0 as a binary target.
if we cascade the column into type int, the problem will be resolved. I can pull a request to solve the problem.
The text was updated successfully, but these errors were encountered: