GitHub user jkbradley opened a pull request:

    https://github.com/apache/spark/pull/7838

    [SPARK-5133] [ml] [WIP] Added featureImportance to RandomForestClassifier 
and Regressor

    Added featureImportance to RandomForestClassifier and Regressor.
    
    This follows the scikit-learn implementation here: 
[https://github.com/scikit-learn/scikit-learn/blob/a95203b249c1cf392f86d001ad999e29b2392739/sklearn/tree/_tree.pyx#L3341]
    
    **TODO**: I still need to add unit tests comparing with an sklearn model.
    
    CC: @yanboliang  Would you mind taking a look?  Thanks!

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jkbradley/spark dt-feature-importance

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/7838.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 #7838
    
----
commit dc33a1d8541c3fb9bf573e2df667b4eb9c0a0297
Author: Joseph K. Bradley <[email protected]>
Date:   2015-07-31T19:55:06Z

    Added featureImportance to RandomForestClassifier/Regressor.  Need to add 
unit tests

----


---
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]

Reply via email to