Skip to content

Commit

Permalink
EXA Fix rst in plot_partial_dependence (scikit-learn#26028)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesteve authored Mar 30, 2023
1 parent 84d4e5d commit c3bfe86
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/inspection/plot_partial_dependence.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
# features and individual conditional expectation (ICE).
#
# Multi-layer perceptron
# """"""""""""""""""""""
# ~~~~~~~~~~~~~~~~~~~~~~
#
# Let's fit a :class:`~sklearn.neural_network.MLPRegressor` and compute
# single-variable partial dependence plots.
Expand Down Expand Up @@ -278,7 +278,7 @@

# %%
# Gradient boosting
# """""""""""""""""
# ~~~~~~~~~~~~~~~~~
#
# Let's now fit a :class:`~sklearn.ensemble.HistGradientBoostingRegressor` and
# compute the partial dependence on the same features. We also use the
Expand Down Expand Up @@ -330,7 +330,7 @@

# %%
# Analysis of the plots
# """""""""""""""""""""
# ~~~~~~~~~~~~~~~~~~~~~
#
# We will first look at the PDPs for the numerical features. For both models, the
# general trend of the PDP of the temperature is that the number of bike rentals is
Expand All @@ -352,7 +352,7 @@
# synthetic samples if features are correlated.
#
# ICE vs. PDP
# """""""""""
# ~~~~~~~~~~~
# PDP is an average of the marginal effects of the features. We are averaging the
# response of all samples of the provided set. Thus, some effects could be hidden. In
# this regard, it is possible to plot each individual response. This representation is
Expand Down Expand Up @@ -521,7 +521,7 @@

# %%
# 3D representation
# """""""""""""""""
# ~~~~~~~~~~~~~~~~~
#
# Let's make the same partial dependence plot for the 2 features interaction,
# this time in 3 dimensions.
Expand Down

0 comments on commit c3bfe86

Please sign in to comment.