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

Pass in a probability for each feature when sampling features #6087

Closed
wmmxk opened this issue Sep 9, 2023 · 4 comments
Closed

Pass in a probability for each feature when sampling features #6087

wmmxk opened this issue Sep 9, 2023 · 4 comments
Labels

Comments

@wmmxk
Copy link

wmmxk commented Sep 9, 2023

Currently, lightgbm supports pass in interaction_constraints as prior when sampling features.

for (auto constraint : config->interaction_constraints_vector) {

I was wondering it is possible add such a feature so a user can pass in a probability vector for all the features when sampling features.

@jameslamb
Copy link
Collaborator

Thanks for your interest in LightGBM.

We already have several other such requests for "per-feature probability of features being selected":

I think you are asking for the same thing as #4605, and that this can be closed as a duplicate of that. Can you please read #4605 and confirm? If your request is different from that one, please explain how.


Also note... I've modified your original post so the link to LightGBM's code is anchored to a specific commit. That way, as the library evolves it'll always be possible for someone reading your post in the future to understand what line you were pointing to.

If you don't know how to do that, you can read about it at https://docs.github.com/en/repositories/working-with-files/using-files/getting-permanent-links-to-files.

@wmmxk
Copy link
Author

wmmxk commented Sep 10, 2023

@jameslamb I really appreciate your reply and modifiying my request and instructions about how to cite a line by a permanent link.

My request is the same as Probability measure for features #4605. It looks the cost efficient gradient boosting might do a similar job. I will look into the implementation in that repo.

@jameslamb
Copy link
Collaborator

Ok sure, no problem! We'll close this then.

Copy link

This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants