8000 DOC replace e.g. by i.e. in fit_intercept docstring (#14594) · qdeffense/scikit-learn@696c8a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 696c8a9

Browse files
amuellerqinhanmin2014
authored andcommitted
DOC replace e.g. by i.e. in fit_intercept docstring (scikit-learn#14594)
1 parent 6425a8f commit 696c8a9

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

sklearn/linear_model/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ class LinearRegression(LinearModel, RegressorMixin, MultiOutputMixin):
371371
fit_intercept : boolean, optional, default True
372372
whether to calculate the intercept for this model. If set
373373
to False, no intercept will be used in calculations
374-
(e.g. data is expected to be already centered).
374+
(i.e. data is expected to be centered).
375375
376376
normalize : boolean, optional, default False
377377
This parameter is ignored when ``fit_intercept`` is set to False.

sklearn/linear_model/bayes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class BayesianRidge(LinearModel, RegressorMixin):
7676
The intercept is not treated as a probabilistic parameter
7777
and thus has no associated variance. If set
7878
to False, no intercept will be used in calculations
79-
(e.g. data is expected to be already centered).
79+
(i.e. data is expected to be centered).
8080
8181
8282
normalize : boolean, optional, default False
@@ -425,7 +425,7 @@ class ARDRegression(LinearModel, RegressorMixin):
425425
fit_intercept : boolean, optional
426426
whether to calculate the intercept for this model. If set
427427
to false, no intercept will be used in calculations
428-
(e.g. data is expected to be already centered).
428+
(i.e. data is expected to be centered).
429429
Default is True.
430430
431431
normalize : boolean, optional, default False

sklearn/linear_model/coordinate_descent.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ class Lasso(ElasticNet):
820820
fit_intercept : boolean, optional, default True
821821
Whether to calculate the intercept for this model. If set
822822
to False, no intercept will be used in calculations
823-
(e.g. data is expected to be already centered).
823+
(i.e. data is expected to be centered).
824824
825825
normalize : boolean, optional, default False
826826
This parameter is ignored when ``fit_intercept`` is set to False.
@@ -1258,7 +1258,7 @@ class LassoCV(LinearModelCV, RegressorMixin):
12581258
fit_intercept : boolean, default True
12591259
whether to calculate the intercept for this model. If set
12601260
to false, no intercept will be used in calculations
1261-
(e.g. data is expected to be already centered).
1261+
(i.e. data is expected to be centered).
12621262
12631263
normalize : boolean, optional, default False
12641264
This parameter is ignored when ``fit_intercept`` is set to False.
@@ -1430,7 +1430,7 @@ class ElasticNetCV(LinearModelCV, RegressorMixin):
14301430
fit_intercept : boolean
14311431
whether to calculate the intercept for this model. If set
14321432
to false, no intercept will be used in calculations
1433-
(e.g. data is expected to be already centered).
1433+
(i.e. data is expected to be centered).
14341434
14351435
normalize : boolean, optional, default False
14361436
This parameter is ignored when ``fit_intercept`` is set to False.
@@ -1635,7 +1635,7 @@ class MultiTaskElasticNet(Lasso):
16351635
fit_intercept : boolean
16361636
whether to calculate the intercept for this model. If set
16371637
to false, no intercept will be used in calculations
1638-
(e.g. data is expected to be already centered).
1638+
(i.e. data is expected to be centered).
16391639
16401640
normalize : boolean, optional, default False
16411641
This parameter is ignored when ``fit_intercept`` is set to False.
@@ -1821,7 +1821,7 @@ class MultiTaskLasso(MultiTaskElasticNet):
18211821
fit_intercept : boolean
18221822
whether to calculate the intercept for this model. If set
18231823
to false, no intercept will be used in calculations
1824-
(e.g. data is expected to be already centered).
1824+
(i.e. data is expected to be centered).
18251825
18261826
normalize : boolean, optional, default False
18271827
This parameter is ignored when ``fit_intercept`` is set to False.
@@ -1962,7 +1962,7 @@ class MultiTaskElasticNetCV(LinearModelCV, RegressorMixin):
19621962
fit_intercept : boolean
19631963
whether to calculate the intercept for this model. If set
19641964
to false, no intercept will be used in calculations
1965-
(e.g. data is expected to be already centered).
1965+
(i.e. data is expected to be centered).
19661966
19671967
normalize : boolean, optional, default False
19681968
This parameter is ignored when ``fit_intercept`` is set to False.
@@ -2136,7 +2136,7 @@ class MultiTaskLassoCV(LinearModelCV, RegressorMixin):
21362136
fit_intercept : boolean
21372137
whether to calculate the intercept for this model. If set
21382138
to false, no intercept will be used in calculations
2139-
(e.g. data is expected to be already centered).
2139+
(i.e. data is expected to be centered).
21402140
21412141
normalize : boolean, optional, default False
21422142
This parameter is ignored when ``fit_intercept`` is set to False.

sklearn/linear_model/least_angle.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ class Lars(LinearModel, RegressorMixin, MultiOutputMixin):
768768
fit_intercept : boolean
769769
Whether to calculate the intercept for this model. If set
770770
to false, no intercept will be used in calculations
771-
(e.g. data is expected to be already centered).
771+
(i.e. data is expected to be centered).
772772
773773
verbose : boolean or integer, optional
774774
Sets the verbosity amount
@@ -987,7 +987,7 @@ class LassoLars(Lars):
987987
fit_intercept : boolean
988988
whether to calculate the intercept for this model. If set
989989
to false, no intercept will be used in calculations
990-
(e.g. data is expected to be already centered).
990+
(i.e. data is expected to be centered).
991991
992992
verbose : boolean or integer, optional
993993
Sets the verbosity amount
@@ -1146,7 +1146,7 @@ def _lars_path_residues(X_train, y_train, X_test, y_test, Gram=None,
11461146
fit_intercept : boolean
11471147
whether to calculate the intercept for this model. If set
11481148
to false, no intercept will be used in calculations
1149-
(e.g. data is expected to be already centered).
1149+
(i.e. data is expected to be centered).
11501150
11511151
positive : boolean (default=False)
11521152
Restrict coefficients to be >= 0. Be aware that you might want to
@@ -1232,7 +1232,7 @@ class LarsCV(Lars):
12321232
fit_intercept : boolean
12331233
whether to calculate the intercept for this model. If set
12341234
to false, no intercept will be used in calculations
1235-
(e.g. data is expected to be already centered).
1235+
(i.e. data is expected to be centered).
12361236
12371237
verbose : boolean or integer, optional
12381238
Sets the verbosity amount
@@ -1446,7 +1446,7 @@ class LassoLarsCV(LarsCV):
14461446
fit_intercept : boolean
14471447
whether to calculate the intercept for this model. If set
14481448
to false, no intercept will be used in calculations
1449-
(e.g. data is expected to be already centered).
1449+
(i.e. data is expected to be centered).
14501450
14511451
verbose : boolean or integer, optional
14521452
Sets the verbosity amount
@@ -1615,7 +1615,7 @@ class LassoLarsIC(LassoLars):
16151615
fit_intercept : boolean
16161616
whether to calculate the intercept for this model. If set
16171617
to false, no intercept will be used in calculations
1618-
(e.g. data is expected to be already centered).
1618+
(i.e. data is expected to be centered).
16191619
16201620
verbose : boolean or integer, optional
16211621
Sets the verbosity amount

sklearn/linear_model/omp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ class OrthogonalMatchingPursuit(LinearModel, RegressorMixin, MultiOutputMixin):
556556
fit_intercept : boolean, optional
557557
whether to calculate the intercept for this model. If set
558558
to false, no intercept will be used in calculations
559-
(e.g. data is expected to be already centered).
559+
(i.e. data is expected to be centered).
560560
561561
normalize : boolean, optional, default True
562562
This parameter is ignored when ``fit_intercept`` is set to False.
@@ -701,7 +701,7 @@ def _omp_path_residues(X_train, y_train, X_test, y_test, copy=True,
701701
fit_intercept : boolean
702702
whether to calculate the intercept for this model. If set
703703
to false, no intercept will be used in calculations
704-
(e.g. data is expected to be already centered).
704+
(i.e. data is expected to be centered).
705705
706706
normalize : boolean, optional, default True
707707
This parameter is ignored when ``fit_intercept`` is set to False.
@@ -770,7 +770,7 @@ class OrthogonalMatchingPursuitCV(LinearModel, RegressorMixin):
770770
fit_intercept : boolean, optional
771771
whether to calculate the intercept for this model. If set
772772
to false, no intercept will be used in calculations
773-
(e.g. data is expected to be already centered).
773+
(i.e. data is expected to be centered).
774774
775775
normalize : boolean, optional, default True
776776
This parameter is ignored when ``fit_intercept`` is set to False.

sklearn/linear_model/ridge.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ class Ridge(_BaseRidge, RegressorMixin):
631631
fit_intercept : bool, default True
632632
Whether to calculate the intercept for this model. If set
633633
to false, no intercept will be used in calculations
634-
(e.g. data is expected to be already centered).
634+
(i.e. data is expected to be centered).
635635
636636
normalize : boolean, optional, default False
637637
This parameter is ignored when ``fit_intercept`` is set to False.
@@ -1601,7 +1601,7 @@ class RidgeCV(_BaseRidgeCV, RegressorMixin):
16011601
fit_intercept : bool, default True
16021602
Whether to calculate the intercept for this model. If set
16031603
to false, no intercept will be used in calculations
1604-
(e.g. data is expected to be already centered).
1604+
(i.e. data is expected to be centered).
16051605
16061606
normalize : boolean, optional, default False
16071607
This parameter is ignored when ``fit_intercept`` is set to False.
@@ -1714,7 +1714,7 @@ class RidgeClassifierCV(LinearClassifierMixin, _BaseRidgeCV):
17141714
fit_intercept : boolean
17151715
Whether to calculate the intercept for this model. If set
17161716
to false, no intercept will be used in calculations
1717-
(e.g. data is expected to be already centered).
1717+
(i.e. data is expected to be centered).
17181718
17191719
normalize : boolean, optional, default False
17201720
This parameter is ignored when ``fit_intercept`` is set to False.

0 commit comments

Comments
 (0)
0