8000 DOC fix some whats_new/0.22 links and other cleanups (#15059) · scikit-learn/scikit-learn@63c2933 · GitHub
[go: up one dir, main page]

Skip to content

Commit 63c2933

Browse files
adrinjalalithomasjpfan
authored andcommitted
DOC fix some whats_new/0.22 links and other cleanups (#15059)
1 parent f7a987a commit 63c2933

File tree

1 file changed

+36
-41
lines changed

1 file changed

+36
-41
lines changed

doc/whats_new/v0.22.rst

Lines changed: 36 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ Changelog
5656
:mod:`sklearn.base`
5757
...................
5858

59-
- |API| From version 0.24 :meth:`BaseEstimator.get_params` will raise an
59+
- |API| From version 0.24 :meth:`base.BaseEstimator.get_params` will raise an
6060
AttributeError rather than return None for parameters that are in the
6161
estimator's constructor but not stored as attributes on the instance.
6262
:pr:`14464` by `Joel Nothman`_.
6363

6464
:mod:`sklearn.calibration`
6565
..........................
6666

67-
- |Fix| Fixed a bug that made `calibration.CalibratedClassifierCV` fail when
67+
- |Fix| Fixed a bug that made :class:`calibration.CalibratedClassifierCV` fail when
6868
given a `sample_weight` parameter of type `list` (in the case where
6969
`sample_weights` are not supported by the wrapped estimator). :pr:`13575`
7070
by :user:`William de Vazelhes <wdevazelhes>`.
@@ -76,6 +76,15 @@ Changelog
7676
neighbors graph as input. :issue:`10482` by `Tom Dupre la Tour`_ and
7777
:user:`Kumar Ashutosh <thechargedneutron>`.
7878

79+
- |Enhancement| :class:`cluster.SpectralClustering` now accepts a ``n_components``
80+
parameter. This parameter extends `SpectralClustering` class functionality to
81+
match :meth:`cluster.spectral_clustering`.
82+
:pr:`13726` by :user:`Shuzhe Xiao <fdas3213>`.
83+
84+
- |Fix| Fixed a bug where :class:`cluster.KMeans` produced inconsistent results
85+
between `n_jobs=1` and `n_jobs>1` due to the handling of the random state.
86+
:pr:`9288` by :user:`Bryan Yang <bryanyang0528>`.
87+
7988
:mod:`sklearn.compose`
8089
......................
8190

@@ -88,18 +97,6 @@ Changelog
8897
pass `**fit_params` to the underlying regressor.
8998
:pr:`14890` by :user:`Miguel Cabrera <mfcabrera>`.
9099

91-
:mod:`sklearn.cluster`
92-
......................
93-
94-
- |Enhancement| :class:`cluster.SpectralClustering` now accepts a ``n_components``
95-
parameter. This parameter extends `SpectralClustering` class functionality to
96-
match `spectral_clustering`.
97-
:pr:`13726` by :user:`Shuzhe Xiao <fdas3213>`.
98-
99-
- |Fix| Fixed a bug where :class:`cluster.KMeans` produced inconsistent results
100-
between `n_jobs=1` and `n_jobs>1` due to the handling of the random state.
101-
:pr:`9288` by :user:`Bryan Yang <bryanyang0528>`.
102-
103100
:mod:`sklearn.cross_decomposition`
104101
..................................
105102

@@ -119,7 +116,7 @@ Changelog
119116
. :pr:`14259` by :user:`Sourav Singh <souravsingh>`.
120117

121118
- |Enhancement| :func:`datasets.make_classification` now accepts array-like
122-
`weights` parameter, i.e. list or numpy.array, instead of list only.
119+
`weights` parameter, i.e. list or numpy.array, instead of list only.
123120
:pr:`14764` by :user:`Cat Chenal <CatChenal>`.
124121

125122
- |Fix| Fixed a bug in :func:`datasets.fetch_openml`, which failed to load
@@ -131,7 +128,8 @@ Changelog
131128

132129
- |Enhancement| :func:`decomposition.dict_learning()` and
133130
:func:`decomposition.dict_learning_online()` now accept `method_max_iter` and
134-
pass it to `sparse_encode`. :issue:`12650` by `Adrin Jalali`_.
131+
pass it to :meth:`decomposition.sparse_encode`.
132+
:issue:`12650` by `Adrin Jalali`_.
135133

136134
- |Enhancement| :class:`decomposition.SparseCoder`,
137135
:class:`decomposition.DictionaryLearning`, and
@@ -146,8 +144,8 @@ Changelog
146144
:pr:`13960` by :user:`Scott Gigante <scottgigante>`.
147145

148146
- |Fix| :func:`decomposition.sparse_encode()` now passes the `max_iter` to the
149-
underlying `LassoLars` when `algorithm='lasso_lars'`. :issue:`12650` by
150-
`Adrin Jalali`_.
147+
underlying :class:`linear_model.LassoLars` when `algorithm='lasso_lars'`.
148+
:issue:`12650` by `Adrin Jalali`_.
151149

152150
:mod:`sklearn.dummy`
153151
....................
@@ -224,13 +222,13 @@ Changelog
224222

225223
- |Enhancement| Addition of ``max_samples`` argument allows limiting
226224
size of bootstrap samples to be less than size of dataset. Added to
227-
:class:`ensemble.forest.ForestClassifier`,
228-
:class:`ensemble.forest.ForestRegressor`,
229-
:class:`ensemble.forest.RandomForestClassifier`,
230-
:class:`ensemble.forest.RandomForestRegressor`,
231-
:class:`ensemble.forest.ExtraTreesClassifier`,
232-
:class:`ensemble.forest.ExtraTreesRegressor`,
233-
:class:`ensemble.forest.RandomTreesEmbedding`. :pr:`14682` by
225+
:class:`ensemble.ForestClassifier`,
226+
:class:`ensemble.ForestRegressor`,
227+
:class:`ensemble.RandomForestClassifier`,
228+
:class:`ensemble.RandomForestRegressor`,
229+
:class:`ensemble.ExtraTreesClassifier`,
230+
:class:`ensemble.ExtraTreesRegressor`,
231+
:class:`ensemble.RandomTreesEmbedding`. :pr:`14682` by
234232
:user:`Matt Hancock <notmatthancock>` and
235233
:pr:`5963` by :user:`Pablo Duboue <DrDub>`.
236234

@@ -244,12 +242,12 @@ Changelog
244242
:class:`feature_extraction.text.TfidfVectorizer`.
245243
:pr:`14602` by :user:`Gaurav Chawla <getgaurav2>`.
246244

247-
- |Fix| Functions created by build_preprocessor and build_analyzer of
245+
- |Fix| Functions created by ``build_preprocessor`` and ``build_analyzer`` of
248246
:class:`feature_extraction.text.VectorizerMixin` can now be pickled.
249247
:pr:`14430` by :user:`Dillon Niederhut <deniederhut>`.
250248

251249
- |API| Deprecated unused `copy` param for
252-
:meth: `feature_extraction.text.TfidfVectorizer.transform` it will be
250+
:meth:`feature_extraction.text.TfidfVectorizer.transform` it will be
253251
removed in v0.24. :pr:`14520` by
254252
:user:`Guillem G. Subies <guillemgsubies>`.
255253

@@ -270,8 +268,8 @@ Changelog
270268
the kernel attribute is modified, but may result in a performance improvement.
271269
:pr:`14378` by :user:`Masashi Shibata <c-bata>`.
272270

273-
- |API| From version 0.24 :meth:`Kernel.get_params` will raise an
274-
AttributeError rather than return None for parameters that are in the
271+
- |API| From version 0.24 :meth:`gaussian_process.kernels.Kernel.get_params` will raise an
272+
``AttributeError`` rather than return ``None`` for parameters that are in the
275273
estimator's constructor but not stored as attributes on the instance.
276274
:pr:`14464` by `Joel Nothman`_.
277275

@@ -406,6 +404,10 @@ Changelog
406404
precomputed distance matrix contains non-zero diagonal entries.
407405
:pr:`12258` by :user:`Stephen Tierney <sjtrny>`.
408406

407+
- |API| ``scoring="neg_brier_score"`` should be used instead of
408+
``scoring="brier_score_loss"`` which is now deprecated.
409+
:pr:`14898` by :user:`Stefan Matcovici <stefan-matcovici>`.
410+
409411
:mod:`sklearn.model_selection`
410412
..............................
411413

@@ -490,7 +492,7 @@ Changelog
490492
performance improvement. :pr:`13987` by `Roman Yurchak`_.
491493

492494
- |Fix| KernelCenterer now throws error when fit on non-square
493-
class:`preprocessing.KernelCenterer`
495+
:class:`preprocessing.KernelCenterer`
494496
:pr:`14336` by :user:`Gregory Dexter <gdex1>`.
495497

496498
:mod:`sklearn.svm`
@@ -552,7 +554,7 @@ Changelog
552554
index array-like across rows and columns. The column indexing can be done on
553555
NumPy array, SciPy sparse matrix, and Pandas DataFrame. An additional
554556
refactoring was done.
555-
:pr:`14035` and :pr:`14475` by `Guillaume Lemaitre <glemaitre>`.
557+
:pr:`14035` and :pr:`14475` by :user:`Guillaume Lemaitre <glemaitre>`.
556558

557559
- |Enhancement| :func:`utils.extmath.safe_sparse_dot` works between 3D+ ndarray
558560
and sparse matrix.
@@ -562,13 +564,6 @@ Changelog
562564
NaN to integer.
563565
:pr:`14872` by `Roman Yurchak`_.
564566

565-
:mod:`sklearn.metrics`
566-
..................................
567-
568-
- |API| scoring="neg_brier_score" should be used instead of
569-
scoring="brier_score_loss" which is now deprecated.
570-
:pr:`14898` by :user:`Stefan Matcovici <stefan-matcovici>`.
571-
572567
Miscellaneous
573568
.............
574569

@@ -595,11 +590,11 @@ These changes mostly affect library developers.
595590
:pr:`13875` by `Trevor Stephens`_.
596591

597592
- `requires_positive_X` estimator tag (for models that require
598-
X to be non-negative) is now used by `check_estimator` to make sure
599-
a proper error message is raised if X contains some negative entries.
593+
X to be non-negative) is now used by :meth:`utils.estimator_checks.check_estimator`
594+
to make sure a proper error message is raised if X contains some negative entries.
600595
:pr:`14680` by :user:`Alex Gramfort <agramfort>`.
601596

602597
- Added check that pairwise estimators raise error on non-square data
603598
:pr:`14336` by :user:`Gregory Dexter <gdex1>`.
604599

605-
- |Fix| Added check_transformer_data_not_an_array to checks where missing
600+
- |Fix| Added ``check_transformer_data_not_an_array`` to checks where missing

0 commit comments

Comments
 (0)
0