|
77 | 77 | from sklearn.metrics import PredictionErrorDisplay |
78 | 78 |
|
79 | 79 | fig, axs = plt.subplots(nrows=1, ncols=2, figsize=(12, 5)) |
80 | | -PredictionErrorDisplay.from_estimator( |
| 80 | +_ = PredictionErrorDisplay.from_estimator( |
81 | 81 | hist_no_interact, X, y, kind="actual_vs_predicted", ax=axs[0] |
82 | 82 | ) |
83 | | -PredictionErrorDisplay.from_estimator( |
| 83 | +_ = PredictionErrorDisplay.from_estimator( |
84 | 84 | hist_no_interact, X, y, kind="residual_vs_predicted", ax=axs[1] |
85 | 85 | ) |
86 | 86 |
|
|
89 | 89 | # results from :func:`~model_selection.learning_curve`. |
90 | 90 | from sklearn.model_selection import LearningCurveDisplay |
91 | 91 |
|
92 | | -LearningCurveDisplay.from_estimator( |
| 92 | +_ = LearningCurveDisplay.from_estimator( |
93 | 93 | hist_no_interact, X, y, cv=5, n_jobs=2, train_sizes=np.linspace(0.1, 1, 5) |
94 | 94 | ) |
95 | 95 |
|
|
120 | 120 | # Improved efficiency of many estimators |
121 | 121 | # -------------------------------------- |
122 | 122 | # In version 1.1 the efficiency of many estimators relying on the computation of |
123 | | -# pairwise distances was greatly improved for float64 dense input. In version 1.2, |
124 | | -# the efficiency of these estimators was further improved for all combinations of |
125 | | -# float32/float64 and dense/sparse input (for all metrics except euclidean). It |
126 | | -# concerns essentially clustering, manifold learning and neighbor search algorithms. |
127 | | -# A detailed list of the impacted estimators can be found in the |
128 | | -# :ref:`changelog <changes_1_2>`. The main benefits are a reduced memory footprint |
| 123 | +# pairwise distances (essentially estimators related to clustering, manifold |
| 124 | +# learning and neighbors search algorithms) was greatly improved for float64 |
| 125 | +# dense input. Efficiency improvement especially were a reduced memory footprint |
129 | 126 | # and a much better scalability on multi-core machines. |
| 127 | +# In version 1.2, the efficiency of these estimators was further improved for all |
| 128 | +# combinations of dense and sparse inputs on float32 and float64 datasets, except |
| 129 | +# the sparse-dense and dense-sparse combinations for the Euclidean and Squared |
| 130 | +# Euclidean Distance metrics. |
| 131 | +# A detailed list of the impacted estimators can be found in the |
| 132 | +# :ref:`changelog <changes_1_2>`. |
0 commit comments