-
Notifications
You must be signed in to change notification settings - Fork 109
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
confusing error messages when passed tables with invalid types #154
Comments
additional introspection on DataFrame object:
|
This is expected behavior but a bad error message. The conversion to a matrix is resulting in something with We probably should try to standardize the cases in which the Could you list all types present in your input tables? I think in your case it would be Set(Iterators.map(typeof, Tables.matrix(s))) |
On second thought, something else fishy is happening here. This specific error should only happen when Also could you please try this on the latest version of XGBoost.jl? From your stack trace it looks like this is at least a few commits old. |
Thank you for prompt response! I believe you hit the problem. A few of the columns in DataFrame object contain String type. I need to figure out the source of this issue on my end (object is end result of multiple conversions of string to numbers and these columns seems to have been missed). Will recontact if this does not correct issue. |
In that case this was definitely supposed to throw an error but this error message was pretty terrible and confused even me. So this is an actionable issue in that we need an improved error message here. I'd be happy if it hit a |
The string element was issue here. Leave it to your discretion if any changes in error message are needed. Thanks for helping me sort out the issue. |
Yes, in my opinion this message is sufficiently confusing that it warrants an open issue, so let's keep this open, though it's not really a high priority to fix it. |
received unusual error message trying to convert a DataFrame to DMatrix. Have in the past and currently convert other DataFrame object without issue. Not sure what is different with this object. Any clues via the error message or suggestion how to troubleshoot would be helpful.
Here is the error
The text was updated successfully, but these errors were encountered: