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

Any way to filter features before plotting with instance_feature_importance(x,figsize=(10,12))? #323

Open
mojitopop opened this issue Jun 26, 2024 · 2 comments

Comments

@mojitopop
Copy link

I want to test out the coefficient for a specific item in my df, however my df has over 600 columns and whenever i try to plot the features importance for that row i get something unreadable, is there a way to specify only plotting the features >0 or something?

I haven't seen anything helpful either by typing "help(viz_model.instance_feature_importance)"

@tlapusan
Copy link
Collaborator

Hi @mojitopop, I looked in the source code and there isn't yet such a logic, but a great suggestion. If you have time would be great to create a PR with this addition.

@mojitopop
Copy link
Author

I would submit one but I honestly have no idea how to do pull requests and such

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

No branches or pull requests

2 participants