Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Partial Dependence Plots for Random Forests. #4405

@sshtomar

Description

@sshtomar

Does scikit-learn have any capacity for partial dependence plots and associated data arrays for random forest analyses?
I can find the plot for GradientBoostingRegressor here http://scikit-learn.org/stable/auto_examples/ensemble/plot_partial_dependence.html.

Doing the same for RF outputs:

File "/usr/local/lib/python2.7/dist-packages/sklearn/ensemble/partial_dependence.py", line 239, in plot_partial_dependence
    raise ValueError('gbrt has to be an instance of BaseGradientBoosting')
ValueError: gbrt has to be an instance of BaseGradientBoosting

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementModerateAnything that requires some knowledge of conventions and best practices

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions