|
25 | 25 |
|
26 | 26 |
|
27 | 27 | class PartialDependenceDisplay:
|
28 |
| - """Partial Dependence Plot (PDP). |
29 |
| -
|
30 |
| - This can also display individual partial dependencies which are often |
31 |
| - referred to as: Individual Condition Expectation (ICE). |
| 28 | + """Partial Dependence Plot (PDP) and Individual Conditional Expectation (ICE). |
32 | 29 |
|
33 | 30 | It is recommended to use
|
34 | 31 | :func:`~sklearn.inspection.PartialDependenceDisplay.from_estimator` to create a
|
35 |
| - :class:`~sklearn.inspection.PartialDependenceDisplay`. All parameters are |
36 |
| - stored as attributes. |
| 32 | + :class:`~sklearn.inspection.PartialDependenceDisplay`. All parameters are stored |
| 33 | + as attributes. |
37 | 34 |
|
38 | 35 | For general information regarding `scikit-learn` visualization tools, see
|
39 | 36 | the :ref:`Visualization Guide <visualizations>`.
|
40 | 37 | For guidance on interpreting these plots, refer to the
|
41 |
| - :ref:`Partial Dependence and ICE plots <partial_dependence>`. |
| 38 | + :ref:`Inspection Guide <partial_dependence>`. |
42 | 39 |
|
43 | 40 | For an example on how to use this class, see the following example:
|
44 | 41 | :ref:`sphx_glr_auto_examples_miscellaneous_plot_partial_dependence_visualization_api.py`.
|
@@ -280,17 +277,21 @@ def from_estimator(
|
280 | 277 | ):
|
281 | 278 | """Partial dependence (PD) and individual conditional expectation (ICE) plots.
|
282 | 279 |
|
283 |
| - Partial dependence plots, individual conditional expectation plots or an |
284 |
| - overlay of both of them can be plotted by setting the ``kind`` |
285 |
| - parameter. The ``len(features)`` plots are arranged in a grid with |
286 |
| - ``n_cols`` columns. Two-way partial dependence plots are plotted as |
287 |
| - contour plots. The deciles of the feature values will be shown with tick |
288 |
| - marks on the x-axes for one-way plots, and on both axes for two-way |
289 |
| - plots. |
290 |
| -
|
291 |
| - Read more in |
292 |
| - :ref:`sphx_glr_auto_examples_inspection_plot_partial_dependence.py` |
293 |
| - and the :ref:`User Guide <partial_dependence>`. |
| 280 | + Partial dependence plots, individual conditional expectation plots, or an |
| 281 | + overlay of both can be plotted by setting the `kind` parameter. |
| 282 | + This method generates one plot for each entry in `features`. The plots |
| 283 | + are arranged in a grid with `n_cols` columns. For one-way partial |
| 284 | + dependence plots, the deciles of the feature values are shown on the |
| 285 | + x-axis. For two-way plots, the deciles are shown on both axes and PDPs |
| 286 | + are contour plots. |
| 287 | +
|
| 288 | + For general information regarding `scikit-learn` visualization tools, see |
| 289 | + the :ref:`Visualization Guide <visualizations>`. |
| 290 | + For guidance on interpreting these plots, refer to the |
| 291 | + :ref:`Inspection Guide <partial_dependence>`. |
| 292 | +
|
| 293 | + For an example on how to use this class method, see |
| 294 | + :ref:`sphx_glr_auto_examples_inspection_plot_partial_dependence.py`. |
294 | 295 |
|
295 | 296 | .. note::
|
296 | 297 |
|
|
0 commit comments