[ https://issues.apache.org/jira/browse/SPARK-5133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14600140#comment-14600140 ]
Joseph K. Bradley commented on SPARK-5133: ------------------------------------------ It's high time we add this to MLlib, so I'm adding this to the 1.5 roadmap. [~peter.prettenhofer] If you are still interested in this, please feel free to take it. Or if others are interested, please comment on this JIRA. The initial API should be quite simple; I'm imagining a single method returning importance for each feature, modeled after what R or other libraries return. I think we should calculate importance based on the learned model. The permutation test would be nice in the future but would be much more expensive (shuffling data). > Feature Importance for Decision Tree (Ensembles) > ------------------------------------------------ > > Key: SPARK-5133 > URL: https://issues.apache.org/jira/browse/SPARK-5133 > Project: Spark > Issue Type: New Feature > Components: ML, MLlib > Reporter: Peter Prettenhofer > > Add feature importance to decision tree model and tree ensemble models. > If people are interested in this feature I could implement it given a mentor > (API decisions, etc). Please find a description of the feature below: > Decision trees intrinsically perform feature selection by selecting > appropriate split points. This information can be used to assess the relative > importance of a feature. > Relative feature importance gives valuable insight into a decision tree or > tree ensemble and can even be used for feature selection. > More information on feature importance (via decrease in impurity) can be > found in ESLII (10.13.1) or here [1]. > R's randomForest package uses a different technique for assessing variable > importance that is based on permutation tests. > All necessary information to create relative importance scores should be > available in the tree representation (class Node; split, impurity gain, > (weighted) nr of samples?). > [1] > http://scikit-learn.org/stable/modules/ensemble.html#feature-importance-evaluation -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org