qianyi
January 27, 2026, 6:46am
1
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
HansS
January 27, 2026, 8:13am
2
Hi @qianyi
Next to the Global Feature Importance, there are two more options mentioned in this thread.
Does KNIME has a node to find feature importance in Random Forest?
gr, Hans
1 Like
qianyi
January 27, 2026, 8:30am
3
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
rfeigel
January 29, 2026, 12:33am
7
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
qianyi
January 30, 2026, 4:46am
8
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
qianyi
January 30, 2026, 6:35am
9
@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
January 30, 2026, 8:25am
11
@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:
One remark about AutoML. It seems that when you want to store the resulting workflow and load it again you will have to remove the input and output that has been stored with the workflow so as to allow the use of the new data.
[image]
Also then with the Workflow Executor you will have to adjust the input and output sessions once.
[image]
Now the Executor is ready to receive the new data (which obviously has to have the same structure as the training data). And will give the results:
[ima…
@Brock_Tibert you would need a Container Output (Table) – KNIME Community Hub in the knime workflow to use the syntax
output_table = wf.data_table_outputs[0] # output_table will be a pd.DataFrame
Otherwise the python module would not know what data to use.
Another approach could be to try and call the workflow from another one and apply the input and output port and then see if everything would work.
So you might have to tell your students to use these container outputs.
Workflows ca…
2 Likes
system
Closed
February 6, 2026, 9:48am
13
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.