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

Unable to plot feature importance plot for the binary classification target varaible seperately #54

Open
munchcrunch opened this issue Jun 7, 2024 · 1 comment

Comments

@munchcrunch
Copy link

My target variable is a binary label containing two variables, such as backed clay and unbacked clay. My question is, I didn't find the option to plot feature importance figures separately for both classes. I want to plot the backed and unbacked separately, but I can't do it. Also, I have tried to plot partial dependence plot separately for both classes but couldn't find a way to do it. Please guide and assist me in this regard. Thank you

@ZebinYang
Copy link
Collaborator

Hi @munchcrunch,

Binary classification is a special case of regression, with only 0 and 1 as outputs.

The feature importance and partial dependence are calculated based on the whole model, and there is no separate feature importance / partial dependence for each class.

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