Skip to content

Commit

Permalink
DOC Replace the phrase "where n_samples in the number" with "where n_…
Browse files Browse the repository at this point in the history
…samples is the number" (scikit-learn#20822)
  • Loading branch information
genvalen authored Aug 24, 2021
1 parent fc63a18 commit 28ce1e3
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions sklearn/decomposition/_dict_learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,7 @@ def fit(self, X, y=None):
Parameters
----------
X : array-like of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples
Training vector, where n_samples is the number of samples
and n_features is the number of features.
y : Ignored
Expand Down Expand Up @@ -1842,7 +1842,7 @@ def partial_fit(self, X, y=None, iter_offset=None):
Parameters
----------
X : array-like of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples
Training vector, where n_samples is the number of samples
and n_features is the number of features.
y : Ignored
Expand Down
4 changes: 2 additions & 2 deletions sklearn/decomposition/_kernel_pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def fit(self, X, y=None):
Parameters
----------
X : {array-like, sparse matrix} of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples
Training vector, where n_samples is the number of samples
and n_features is the number of features.
Returns
Expand Down Expand Up @@ -420,7 +420,7 @@ def fit_transform(self, X, y=None, **params):
Parameters
----------
X : {array-like, sparse matrix} of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples
Training vector, where n_samples is the number of samples
and n_features is the number of features.
Returns
Expand Down
4 changes: 2 additions & 2 deletions sklearn/decomposition/_sparse_pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def fit(self, X, y=None):
Parameters
----------
X : array-like of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples
Training vector, where n_samples is the number of samples
and n_features is the number of features.
y : Ignored
Expand Down Expand Up @@ -367,7 +367,7 @@ def fit(self, X, y=None):
Parameters
----------
X : array-like of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples
Training vector, where n_samples is the number of samples
and n_features is the number of features.
y : Ignored
Expand Down
2 changes: 1 addition & 1 deletion sklearn/linear_model/_bayes.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def fit(self, X, y):
Parameters
----------
X : array-like of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples and
Training vector, where n_samples is the number of samples and
n_features is the number of features.
y : array-like of shape (n_samples,)
Target values (integers). Will be cast to X's dtype if necessary.
Expand Down
2 changes: 1 addition & 1 deletion sklearn/linear_model/_huber.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def fit(self, X, y, sample_weight=None):
Parameters
----------
X : array-like, shape (n_samples, n_features)
Training vector, where n_samples in the number of samples and
Training vector, where n_samples is the number of samples and
n_features is the number of features.
y : array-like, shape (n_samples,)
Expand Down
2 changes: 1 addition & 1 deletion sklearn/manifold/_isomap.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def fit_transform(self, X, y=None):
Parameters
----------
X : {array-like, sparse graph, BallTree, KDTree}
Training vector, where n_samples in the number of samples
Training vector, where n_samples is the number of samples
and n_features is the number of features.
y : Ignored
Expand Down
2 changes: 1 addition & 1 deletion sklearn/svm/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ def _fit_liblinear(
Parameters
----------
X : {array-like, sparse matrix} of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples and
Training vector, where n_samples is the number of samples and
n_features is the number of features.
y : array-like of shape (n_samples,)
Expand Down
2 changes: 1 addition & 1 deletion sklearn/svm/_bounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def l1_min_c(X, y, *, loss="squared_hinge", fit_intercept=True, intercept_scalin
Parameters
----------
X : {array-like, sparse matrix} of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples and
Training vector, where n_samples is the number of samples and
n_features is the number of features.
y : array-like of shape (n_samples,)
Expand Down
4 changes: 2 additions & 2 deletions sklearn/svm/_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def fit(self, X, y, sample_weight=None):
Parameters
----------
X : {array-like, sparse matrix} of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples and
Training vector, where n_samples is the number of samples and
n_features is the number of features.
y : array-like of shape (n_samples,)
Expand Down Expand Up @@ -438,7 +438,7 @@ def fit(self, X, y, sample_weight=None):
Parameters
----------
X : {array-like, sparse matrix} of shape (n_samples, n_features)
Training vector, where n_samples in the number of samples and
Training vector, where n_samples is the number of samples and
n_features is the number of features.
y : array-like of shape (n_samples,)
Expand Down

0 comments on commit 28ce1e3

Please sign in to comment.