-
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
expose DMatrix weight
in keyword arguments of xgboost()
?
#210
Comments
I can make a PR if people think this is a good idea |
I'm a little out of the loop here as I haven't worked on this package in a while, so please correct me if I get this wrong, but I believe the reason it works this way is that we are mirroring the C API for which weights is a parameter of the I'm not necessarily opposed to adding an argument for |
good point -- part of the motivation is that MLJ interface package simply pass keyword arguments to I guess "everything like C API" is a reasonable guide to follow. Looking at MLJ, https://juliaai.github.io/MLJ.jl/stable/weights/ it has a concept of |
Currently, there's no way to train a XGBoost model with weights if you don't manually construct a DMatrix?
In Python wrapper, this is called
sample_weight
The text was updated successfully, but these errors were encountered: