I have simple Decision Tree program in Python. Is there a way to find out (print) the most influential parameter (or more of them) from X that caused the result? For example: "the predicted result is "yes". The most influential parameters are [0] values in items of X"
from sklearn import tree
X=[[100,3],[130,3],[80,2],[90,2],[140,3]]
Y=["yes","no","yes","yes","no"]
clf = tree.DecisionTreeClassifier()
clf = clf.fit(X,Y)
List1=[124,3]
prediction = clf.predict([List1])
print(prediction)