Skip to content
Snippets Groups Projects
  • sethah's avatar
    234f781a
    [SPARK-13787][ML][PYSPARK] Pyspark feature importances for decision tree and random forest · 234f781a
    sethah authored
    ## What changes were proposed in this pull request?
    
    This patch adds a `featureImportance` property to the Pyspark API for `DecisionTreeRegressionModel`, `DecisionTreeClassificationModel`, `RandomForestRegressionModel` and `RandomForestClassificationModel`.
    
    ## How was this patch tested?
    
    Python doc tests for the affected classes were updated to check feature importances.
    
    Author: sethah <seth.hendrickson16@gmail.com>
    
    Closes #11622 from sethah/SPARK-13787.
    234f781a
    History
    [SPARK-13787][ML][PYSPARK] Pyspark feature importances for decision tree and random forest
    sethah authored
    ## What changes were proposed in this pull request?
    
    This patch adds a `featureImportance` property to the Pyspark API for `DecisionTreeRegressionModel`, `DecisionTreeClassificationModel`, `RandomForestRegressionModel` and `RandomForestClassificationModel`.
    
    ## How was this patch tested?
    
    Python doc tests for the affected classes were updated to check feature importances.
    
    Author: sethah <seth.hendrickson16@gmail.com>
    
    Closes #11622 from sethah/SPARK-13787.