Skip to content
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

Sample weight for XGBoost #82

Open
petterton opened this issue Jul 28, 2018 · 3 comments
Open

Sample weight for XGBoost #82

petterton opened this issue Jul 28, 2018 · 3 comments

Comments

@petterton
Copy link

In Python XGBoost one can provide weights for each row of the data, see http://xgboost.readthedocs.io/en/latest/python/python_api.html#xgboost.XGBClassifier.fit. I tried to look for a way to specify such weights in SharpLearning, but could not find it. Is this possible?

@mdabros
Copy link
Owner

mdabros commented Jul 30, 2018

Hi @petterton ,

Currently there is no support for providing sample weights. I have a few tasks for adding this to all the learners, however, I have not completed these yet.

I might add it to the XGBoost learners as a starting point, without adding the option to the general learning interfaces. I will see if I can fit it in during the coming weeks.

Best regards
Mads

@mdabros
Copy link
Owner

mdabros commented Aug 11, 2018

@petterton, I was trying add sample weight support for the XGBoost learners today. However, it seems that the DMatrix implementation in XGBoost.Net, which I am using to interface with the native xgboost lib, does not support setting the sample weights yet. This makes things slightly more complicated, so adding this will take more time, and depends on when the guys at XGBoost.Net have time to add this. I have added an issue for it: PicNet/XGBoost.Net#26

@petterton
Copy link
Author

Thanks for your efforts @mdabros! I will follow developments on the issue at XGBoost.Net.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants