-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Incorrect array shape returned by xgboost.dask.predict on multiclass predictions #5984
Labels
Comments
@trivialfis This might be a blocking issue. |
Will fix it first thing tomorrow. |
That's weird, we have tests on this and right now it's outputting the correct shape for me. |
I have to increase the test size to obtain incorrect shape. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The function
xgboost.dask.predict
assumes that the shape of it's output is always(n_rows, )
, but for multiclass classification it would be(n_rows, n_classes)
.Here's a minimum working example:
The offending line is this one
I don't know what the maintainers would consider an idiomatic solution, but something like this works (but is gross). I'm not familiar enough with the serialized configuration to know if those keys exist for other learners/if a
KeyError
would be raised by some set of params that I'm unfamiliar with.Happy to provide any clarifications if this isn't clear enough.
The text was updated successfully, but these errors were encountered: