10000 DOC typo in ElasticNet docstring · jwchennlp/scikit-learn@6716a81 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6716a81

Browse files
amuellerGaelVaroquaux
authored andcommitted
DOC typo in ElasticNet docstring
1 parent 121cb20 commit 6716a81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/linear_model/coordinate_descent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ElasticNet(LinearModel, RegressorMixin):
6060
6161
rho : float
6262
The ElasticNet mixing parameter, with 0 < rho <= 1. For rho = 0
63-
the penalty is an L1 penalty. For rho = 1 it is an L1 penalty.
63+
the penalty is an L2 penalty. For rho = 1 it is an L1 penalty.
6464
For 0 < rho < 1, the penalty is a combination of L1 and L2
6565
6666
fit_intercept: bool
@@ -860,7 +860,7 @@ class ElasticNetCV(LinearModelCV, RegressorMixin):
860860
rho : float, optional
861861
float between 0 and 1 passed to ElasticNet (scaling between
862862
l1 and l2 penalties). For rho = 0
863-
the penalty is an L1 penalty. For rho = 1 it is an L1 penalty.
863+
the penalty is an L2 penalty. For rho = 1 it is an L1 penalty.
864864
For 0 < rho < 1, the penalty is a combination of L1 and L2
865865
This parameter can be a list, in which case the different
866866
values are tested by cross-validation and the one giving the best

0 commit comments

Comments
 (0)
0