Skip to content

Commit 323bcea

Browse files
committed
Merge pull request scikit-learn#6426 from yenchenlin1994/remove-redundant-typo
[MRG] DOC Remove redundant words in sklearn
2 parents 613e8be + 46fc1be commit 323bcea

32 files changed

+36
-36
lines changed

doc/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ anymore. The version of joblib shipped with scikit-learn automatically uses
235235
that setting by default (under Python 3.4 and later).
236236

237237
If you have custom code that uses ``multiprocessing`` directly instead of using
238-
it via joblib you can enable the the 'forkserver' mode globally for your
238+
it via joblib you can enable the 'forkserver' mode globally for your
239239
program: Insert the following instructions in your main script::
240240

241241
import multiprocessing

doc/modules/biclustering.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ are used to form the matrix :math:`Z`:
140140
C^{-1/2} V
141141
\end{bmatrix}
142142
143-
where the the columns of :math:`U` are :math:`u_2, \dots, u_{\ell +
143+
where the columns of :math:`U` are :math:`u_2, \dots, u_{\ell +
144144
1}`, and similarly for :math:`V`.
145145

146146
Then the rows of :math:`Z` are clustered using :ref:`k-means
@@ -174,7 +174,7 @@ The :class:`SpectralBiclustering` algorithm assumes that the input
174174
data matrix has a hidden checkerboard structure. The rows and columns
175175
of a matrix with this structure may be partitioned so that the entries
176176
of any bicluster in the Cartesian product of row clusters and column
177-
clusters is are approximately constant. For instance, if there are two
177+
clusters are approximately constant. For instance, if there are two
178178
row partitions and three column partitions, each row will belong to
179179
three biclusters, and each column will belong to two biclusters.
180180

doc/modules/covariance.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ empirical covariance matrix is then rescaled to compensate the
280280
performed selection of observations ("consistency step"). Having
281281
computed the Minimum Covariance Determinant estimator, one can give
282282
weights to observations according to their Mahalanobis distance,
283-
leading the a reweighted estimate of the covariance matrix of the data
283+
leading to a reweighted estimate of the covariance matrix of the data
284284
set ("reweighting step").
285285

286286
Rousseeuw and Van Driessen [4] developed the FastMCD algorithm in order

doc/modules/cross_validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ Here is a usage example::
465465

466466
:class:`ShuffleSplit` is thus a good alternative to :class:`KFold` cross
467467
validation that allows a finer control on the number of iterations and
468-
the proportion of samples in on each side of the train / test split.
468+
the proportion of samples on each side of the train / test split.
469469

470470

471471
Label-Shuffle-Split

doc/modules/ensemble.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ the contribution of each weak learner by a factor :math:`\nu`:
679679
F_m(x) = F_{m-1}(x) + \nu \gamma_m h_m(x)
680680
681681
The parameter :math:`\nu` is also called the **learning rate** because
682-
it scales the step length the the gradient descent procedure; it can
682+
it scales the step length the gradient descent procedure; it can
683683
be set via the ``learning_rate`` parameter.
684684

685685
The parameter ``learning_rate`` strongly interacts with the parameter

doc/modules/pipeline.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ create complex models.
134134

135135
(A :class:`FeatureUnion` has no way of checking whether two transformers
136136
might produce identical features. It only produces a union when the
137-
feature sets are disjoint, and making sure they are is the caller's
137+
feature sets are disjoint, and making sure they are the caller's
138138
responsibility.)
139139

140140

doc/modules/svm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ for these classifiers.
181181

182182
This might be made more clear by an example:
183183

184-
Consider a three class problem with with class 0 having three support vectors
184+
Consider a three class problem with class 0 having three support vectors
185185
:math:`v^{0}_0, v^{1}_0, v^{2}_0` and class 1 and 2 having two support vectors
186186
:math:`v^{0}_1, v^{1}_1` and :math:`v^{0}_2, v^{1}_2` respectively. For each
187187
support vector :math:`v^{j}_i`, there are two dual coefficients. Let's call

doc/tutorial/text_analytics/skeletons/exercise_01_language_train_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
dataset.data, dataset.target, test_size=0.5)
2929

3030

31-
# TASK: Build a an vectorizer that splits strings into sequence of 1 to 3
31+
# TASK: Build a vectorizer that splits strings into sequence of 1 to 3
3232
# characters instead of word tokens
3333

3434
# TASK: Build a vectorizer / classifier pipeline using the previous analyzer

doc/tutorial/text_analytics/solutions/exercise_01_language_train_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
dataset.data, dataset.target, test_size=0.5)
2929

3030

31-
# TASK: Build a an vectorizer that splits strings into sequence of 1 to 3
31+
# TASK: Build a vectorizer that splits strings into sequence of 1 to 3
3232
# characters instead of word tokens
3333
vectorizer = TfidfVectorizer(ngram_range=(1, 3), analyzer='char',
3434
use_idf=False)

doc/whats_new.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2812,7 +2812,7 @@ Other changes
28122812

28132813
- :class:`svm.SVC` members ``coef_`` and ``intercept_`` changed sign for
28142814
consistency with ``decision_function``; for ``kernel==linear``,
2815-
``coef_`` was fixed in the the one-vs-one case, by `Andreas Müller`_.
2815+
``coef_`` was fixed in the one-vs-one case, by `Andreas Müller`_.
28162816

28172817
- Performance improvements to efficient leave-one-out cross-validated
28182818
Ridge regression, esp. for the ``n_samples > n_features`` case, in
@@ -2993,7 +2993,7 @@ Changelog
29932993

29942994
- Fixed a bug in the RFE module by `Gilles Louppe`_ (issue #378).
29952995

2996-
- Fixed a memory leak in in :ref:`svm` module by `Brian Holt`_ (issue #367).
2996+
- Fixed a memory leak in :ref:`svm` module by `Brian Holt`_ (issue #367).
29972997

29982998
- Faster tests by `Fabian Pedregosa`_ and others.
29992999

0 commit comments

Comments
 (0)