Calculate feature importance in a multi-class classification by KNIME?

Hi there!

I need to calculate feature importance for a multi-class classification task.
I tried to explore previous component, and found the Global Feature Importance – KNIME Community Hub, which is useful but only for a binary classification.

Are there any component or other ways to get feature importance for a multi-class classification?

Thanks in advance!

1 Like

Hi @qianyi

Next to the Global Feature Importance, there are two more options mentioned in this thread.

gr, Hans

1 Like

Hi @HansS

Thanks for your reply. I have found the 1st. option already, it seems still a binary classification.

Will try to use the 2nd. one (need to install NodePit beforehand).

Thanks!

1 Like

@qianyi a lot of these model types do offer feature importance:

2 Likes

Hello @qianyi
I tested once in the old way approaching by looping a ‘Linear Regression Learner’. I’m not sure this method will fit your use case.

BR

1 Like

Try this. Has Global & Local Feature Importance for a three class data set (Iris Data.) You can change the model(s) as you see fit.

5 Likes

Thanks for the reply!

@mlauber71 I’m interested in getting an environment propagation error when running this workflow.
Do I need to create a conda environment with the name “kaggle”?
I think my existing conda environment can run h2o, xgboost.

@gonhaddock I found this workflow interesting. I’ll try to apply it to classification instead of regression.

@rfeigel the local explanation viewer nearly perfectly fits my needs. Thanks!

1 Like

@rfeigel

probably it’s better to start another topic, but if you know, is the AutoML component in this workflow support model writer / reader?

I tried the model writer, it works fine.

but when I tried to read the model in another workflow to execute the AutoML model, it failed.

And comment and idea are welcome!

@qianyi you need the:

@mlauber71

thanks for your quick response!

Actually, I tried this before using Model reader / writer,
but something went wrong, currently I can’t figure out.

@qianyi I forgot to mention the special handling of the ports. Maybe try it like this:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.