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

How to get feature importances #60

Closed
yuhai-china opened this issue Nov 1, 2016 · 8 comments
Closed

How to get feature importances #60

yuhai-china opened this issue Nov 1, 2016 · 8 comments

Comments

@yuhai-china
Copy link

Hey,

LightGBM is greate, I try to use it for several datasets, but I cannot get feature importance after training.
How can I enable to output feature importance after training?

Thanks

@guolinke
Copy link
Collaborator

guolinke commented Nov 1, 2016

feature importance will write to model file automatically. you can check the model file.

@guolinke guolinke closed this as completed Nov 1, 2016
@yuhai-china
Copy link
Author

LightGBM_model.txt

train.conf.txt

However, I cannot find feature importance from the model file as attached, anything wrong?

Thanks

@chenghuige
Copy link
Contributor

@yuhai-china you can find from LightGBM_model.txt last line

@yuhai-china
Copy link
Author

@chenghuige I cannot find feature importance from the model file as attached, anything wrong about config file?

Thanks

@guolinke
Copy link
Collaborator

guolinke commented Nov 1, 2016

@yuhai-china are you run this with the latest code?

@yuhai-china
Copy link
Author

the code was downloaded about one week ago.

@yuhai-china
Copy link
Author

I update to the latest code and finally get the feature importance, thanks

@github-actions
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 Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants