Skip to content

Commit 9a4bd37

Browse files
authored
DOC replace Boston in gradient_boosting.py (scikit-learn#16891)
1 parent fe1ec1c commit 9a4bd37

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/impute/plot_iterative_imputer_variants_comparison.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
keys=['Original', 'SimpleImputer', 'IterativeImputer'], axis=1
120120
)
121121

122-
# plot boston results
122+
# plot california housing results
123123
fig, ax = plt.subplots(figsize=(13, 6))
124124
means = -scores.mean()
125125
errors = scores.std()

sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -855,11 +855,11 @@ class HistGradientBoostingRegressor(RegressorMixin, BaseHistGradientBoosting):
855855
>>> # To use this experimental feature, we need to explicitly ask for it:
856856
>>> from sklearn.experimental import enable_hist_gradient_boosting # noqa
857857
>>> from sklearn.ensemble import HistGradientBoostingRegressor
858-
>>> from sklearn.datasets import load_boston
859-
>>> X, y = load_boston(return_X_y=True)
858+
>>> from sklearn.datasets import load_diabetes
859+
>>> X, y = load_diabetes(return_X_y=True)
860860
>>> est = HistGradientBoostingRegressor().fit(X, y)
861861
>>> est.score(X, y)
862-
0.98...
862+
0.92...
863863
"""
864864

865865
_VALID_LOSSES = ('least_squares', 'least_absolute_deviation')

0 commit comments

Comments
 (0)