Python Machine Learning Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

Getting ready

Let's calculate the relative importance of the features. Feature importance provides a measure that indicates the value of each feature in the construction of the model. The more an attribute is used to build the model, the greater its relative importance. This importance is explicitly calculated for each attribute in the dataset, allowing you to classify and compare attributes to each other.  Feature importance is an attribute contained in the model (feature_importances_).