GitHub user sethah opened a pull request:
https://github.com/apache/spark/pull/11622
[SPARK-13787][ML][PYSPARK] Pyspark feature importances for decision tree
and random forest
## 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.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sethah/spark SPARK-13787
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11622.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #11622
----
commit 9cbe8ea8bfd9a486129bcb15821e2cdc4c691cff
Author: sethah <[email protected]>
Date: 2016-03-09T23:38:19Z
adding feature importances for decision tree and random forest
commit 6226cd40ae2ec4206d2a45b3fcd0d58cb2e0ebb8
Author: sethah <[email protected]>
Date: 2016-03-10T00:34:31Z
adding links
commit d1a5a7e60b0ecf6d7f7ebce3aa6c0663a09f71a5
Author: sethah <[email protected]>
Date: 2016-03-10T00:46:48Z
adding doctests
commit f1307a3324566534f8714288ff8004cbb2ccfb47
Author: sethah <[email protected]>
Date: 2016-03-10T00:49:01Z
fixing typo
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]