Hi Everybody,
I have a question is it possible to extract feature importance in Knime using decision tree learner and predictor?
Using sklearn I usual use the following code for it:
from sklearn.tree import DecisionTreeClassifier
dt = DecisionTreeClassifier()
dt.fit(X_train, y_train)
dt.score(X_test, y_test)
dt.feature_importances_
For sure I could use the python node, but I try to transfer my normal tasks to KNIME without using python.
Does somebody have an idea?
ipazin
#2
Hello @sschacht,
see these two topics:
Br,
Ivan
HansS
#3
Hi @sschacht
Maybe the Information Gain Calculator helps you to give some insights about the feature importance.
gr. Hans
2 Likes
system
closed
#4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.