concept feature importance in category AI

appears as: feature importce, The feature importce, feature importce
Interpretable AI

This is an excerpt from Manning's book Interpretable AI.

Since decision trees learn a non-linear relationship between the input features and the target, it is hard to understand what effect changes to each of the inputs has on the output. It is not as straightforward as linear regression. We can however compute the relative importance of each of the features in predicting the target at a global level. In order to compute the feature importance, we first need to compute the importance of a node in the binary tree. The importance of a node is computed as the decrease in the cost function or impurity measure for that node weighted by the probability of reaching that node in the tree. This is shown mathematically below.

We can then compute the feature importance by summing up the importance of the nodes that split on that feature normalized by the importance of all the nodes in the tree. This is shown mathematically below. The feature importance for decision tree is there between 0 and 1, where a higher value implies greater importance.