Skip to content

Commit 03b8829

Browse files
committed
extend eps_ description
1 parent 9701bb8 commit 03b8829

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

sklearn/linear_model/coordinate_descent.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,11 @@ class ElasticNet(LinearModel, RegressorMixin):
112112
113113
`dual_gap_` : float
114114
the current fit is guaranteed to be epsilon-suboptimal with
115-
epsilon := dual_gap_
115+
epsilon := `dual_gap_`
116116
117117
`eps_` : float
118-
eps_ := tol * norm(y, 2)^2
118+
`eps_` is used to check if the fit converged to the requested
119+
`tol`
119120
120121
Notes
121122
-----
@@ -398,10 +399,11 @@ class Lasso(ElasticNet):
398399
399400
`dual_gap_` : float
400401
the current fit is guaranteed to be epsilon-suboptimal with
401-
epsilon := dual_gap_
402+
epsilon := `dual_gap_`
402403
403404
`eps_` : float
404-
eps_ := tol * norm(y, 2)^2
405+
`eps_` is used to check if the fit converged to the requested
406+
`tol`
405407
406408
Examples
407409
--------

0 commit comments

Comments
 (0)