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

Allow extra_trees by variable #4700

Closed
samFarrellDay opened this issue Oct 20, 2021 · 4 comments
Closed

Allow extra_trees by variable #4700

samFarrellDay opened this issue Oct 20, 2021 · 4 comments

Comments

@samFarrellDay
Copy link
Contributor

Summary

Would be nice to allow extra_trees to be variable specific. Would it be possible to allow extra_trees to be a list of variable names? I don't know if this is possible from a technical perspective, I just know it would be a nice feature to have.

Motivation

I am especially interested in the interaction between a specific variable and the model output. I would like lightgbm to split at many different points for this variable. extra_trees gets it to do this, but model accuracy suffers because it's choosing random split points for all other variables too.

@shiyu1994
Copy link
Collaborator

@samFarrellDay Thanks for using LightGBM. I think one reason that we don't have feature-wise extra_trees option is that when we allow some features to select threshold by gain, and others to use random thresholds, the former features will be much more likely to be selected since their thresholds are the ones with largest gains.

But in the case of your motivation, this can still be useful sometimes.

We may add this to feature request first. And welcome to contribute to this.

@jameslamb
Copy link
Collaborator

Thanks for the request @samFarrellDay and for your feedback on it @shiyu1994 .

I've added this feature request to the backlog of feature requests at #2302. Closing this issue for now.

Anyone reading this who is interested in contributing, just leave a comment here indicating that and this issue can be re-opened as a place to ask maintainers for guidance in implementing this.

@github-actions

This comment was marked as off-topic.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2023
@jameslamb
Copy link
Collaborator

Sorry, this was locked accidentally. Just unlocked it. We'd still love help with this feature!

@microsoft microsoft unlocked this conversation Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants