Skip to content

Commit c4733f4

Browse files
bwignallqinhanmin2014
authored andcommitted
MNT Fix some easy-to-make typos (scikit-learn#15720)
1 parent 4f97fac commit c4733f4

File tree

18 files changed

+25
-25
lines changed

18 files changed

+25
-25
lines changed

build_tools/azure/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ make_conda() {
1111
}
1212

1313
version_ge() {
14-
# The two version numbers are seperated with a new line is piped to sort
14+
# The two version numbers are separated with a new line is piped to sort
1515
# -rV. The -V activates for version number sorting and -r sorts in
1616
# decending order. If the first argument is the top element of the sort, it
1717
# is greater than or equal to the second argument.

doc/developers/advanced_installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ Finally, build the package using the standard command::
374374

375375
pip install --verbose --editable .
376376

377-
For the upcomming FreeBSD 12.1 and 11.3 versions, OpenMP will be included in
377+
For the upcoming FreeBSD 12.1 and 11.3 versions, OpenMP will be included in
378378
the base system and these steps will not be necessary.
379379

380380
.. _OpenMP: https://en.wikipedia.org/wiki/OpenMP

doc/modules/computing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ Joblib-based parallelism
529529
........................
530530

531531
When the underlying implementation uses joblib, the number of workers
532-
(threads or processes) that are spawned in parallel can be controled via the
532+
(threads or processes) that are spawned in parallel can be controlled via the
533533
``n_jobs`` parameter.
534534

535535
.. note::
@@ -666,7 +666,7 @@ Python runtime
666666

667667
:working_memory:
668668

669-
the optimal size of temporary arrays used by some algoritms.
669+
the optimal size of temporary arrays used by some algorithms.
670670

671671
.. _environment_variable:
672672

doc/modules/model_evaluation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,7 @@ relevant), NDCG can be used.
17201720

17211721
For one sample, given the vector of continuous ground-truth values for each
17221722
target :math:`y \in \mathbb{R}^{M}`, where :math:`M` is the number of outputs, and
1723-
the prediction :math:`\hat{y}`, which induces the ranking funtion :math:`f`, the
1723+
the prediction :math:`\hat{y}`, which induces the ranking function :math:`f`, the
17241724
DCG score is
17251725

17261726
.. math::

doc/modules/neighbors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ implementation with special data types. The precomputed neighbors
581581
training point as its own neighbor in the count of `n_neighbors`. However,
582582
for compatibility reasons with other estimators which use the other
583583
definition, one extra neighbor will be computed when `mode == 'distance'`.
584-
To maximise compatiblity with all estimators, a safe choice is to always
584+
To maximise compatibility with all estimators, a safe choice is to always
585585
include one extra neighbor in a custom nearest neighbors estimator, since
586586
unnecessary neighbors will be filtered by following estimators.
587587

doc/whats_new/v0.20.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ Support for Python 3.3 has been officially dropped.
709709

710710
- |Feature| |Fix| :class:`decomposition.SparsePCA` now exposes
711711
``normalize_components``. When set to True, the train and test data are
712-
centered with the train mean repsectively during the fit phase and the
712+
centered with the train mean respectively during the fit phase and the
713713
transform phase. This fixes the behavior of SparsePCA. When set to False,
714714
which is the default, the previous abnormal behaviour still holds. The False
715715
value is for backward compatibility and should not be used. :issue:`11585`

doc/whats_new/v0.21.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ Support for Python 3.4 and below has been officially dropped.
295295
......................
296296

297297
- |MajorFeature| A new clustering algorithm: :class:`cluster.OPTICS`: an
298-
algoritm related to :class:`cluster.DBSCAN`, that has hyperparameters easier
298+
algorithm related to :class:`cluster.DBSCAN`, that has hyperparameters easier
299299
to set and that scales better, by :user:`Shane <espg>`,
300300
`Adrin Jalali`_, :user:`Erich Schubert <kno10>`, `Hanmin Qin`_, and
301301
:user:`Assia Benbihi <assiaben>`.

doc/whats_new/v0.22.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ Changelog
799799
- |Fix| :class:`svm.SVC`, :class:`svm.SVR`, :class:`svm.NuSVR` and
800800
:class:`svm.OneClassSVM` when received values negative or zero
801801
for parameter ``sample_weight`` in method fit(), generated an
802-
invalid model. This behavior occured only in some border scenarios.
802+
invalid model. This behavior occurred only in some border scenarios.
803803
Now in these cases, fit() will fail with an Exception.
804804
:pr:`14286` by :user:`Alex Shacked <alexshacked>`.
805805

examples/inspection/plot_partial_dependence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
:class:`~sklearn.ensemble.HistGradientBoostingRegressor` trained on the
1515
California housing dataset. The example is taken from [1]_.
1616
17-
The plots show four 1-way and two 1-way partial dependence plots (ommitted for
17+
The plots show four 1-way and two 1-way partial dependence plots (omitted for
1818
:class:`~sklearn.neural_network.MLPRegressor` due to computation time). The
1919
target variables for the one-way PDP are: median income (`MedInc`), average
2020
occupants per household (`AvgOccup`), median house age (`HouseAge`), and

sklearn/decomposition/_dict_learning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ def dict_learning_online(X, n_components=2, alpha=1, n_iter=100,
704704
inner_stats : tuple of (A, B) ndarrays
705705
Inner sufficient statistics that are kept by the algorithm.
706706
Passing them at initialization is useful in online settings, to
707-
avoid loosing the history of the evolution.
707+
avoid losing the history of the evolution.
708708
A (n_components, n_components) is the dictionary covariance matrix.
709709
B (n_features, n_components) is the data approximation matrix
710710
@@ -1351,7 +1351,7 @@ class MiniBatchDictionaryLearning(SparseCodingMixin, BaseEstimator):
13511351
13521352
inner_stats_ : tuple of (A, B) ndarrays
13531353
Internal sufficient statistics that are kept by the algorithm.
1354-
Keeping them is useful in online settings, to avoid loosing the
1354+
Keeping them is useful in online settings, to avoid losing the
13551355
history of the evolution, but they shouldn't have any use for the
13561356
end user.
13571357
A (n_components, n_components) is the dictionary covariance matrix.

0 commit comments

Comments
 (0)