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

Removing trees from a model #5531

Closed
ldesreumaux opened this issue Apr 14, 2020 · 2 comments · Fixed by #6302
Closed

Removing trees from a model #5531

ldesreumaux opened this issue Apr 14, 2020 · 2 comments · Fixed by #6302

Comments

@ldesreumaux
Copy link
Contributor

As a follow up to #2281, I think that it would be great if XGBoost supported the removal of trees from a model.

It would allow the implementation (with callbacks) of adaptive learning rate strategies that need to abandon some trees before adjusting the learning rate. More generally, it would allow to implement various "ensemble pruning" methods.

@trivialfis
Copy link
Member

It's doable with process_type as update, but it's quite hacky right now.

@trivialfis
Copy link
Member

I have a local branch that can slice the model, but it still need to handle Python's negative slice.

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

Successfully merging a pull request may close this issue.

2 participants