8000 DOC Minor doc fixes to coordinate_descent.py (#11737) · scikit-learn/scikit-learn@aa7a6fc · GitHub
[go: up one dir, main page]

Skip to content

Commit aa7a6fc

Browse files
NicolasHugqinhanmin2014
authored andcommitted
DOC Minor doc fixes to coordinate_descent.py (#11737)
1 parent 76d763b commit aa7a6fc

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
@@ -1613,13 +1613,13 @@ class MultiTaskElasticNet(Lasso):
16131613
16141614
The optimization objective for MultiTaskElasticNet is::
16151615
1616-
(1 / (2 * n_samples)) * ||Y - XW||^Fro_2
1616+
(1 / (2 * n_samples)) * ||Y - XW||_Fro^2
16171617
+ alpha * l1_ratio * ||W||_21
16181618
+ 0.5 * alpha * (1 - l1_ratio) * ||W||_Fro^2
16191619
16201620
Where::
16211621
1622-
||W||_21 = \\sum_i \\sqrt{\\sum_j w_{ij}^2}
1622+
||W||_21 = sum_i sqrt(sum_j w_ij ^ 2)
16231623
16241624
i.e. the sum of norm of each row.
16251625

0 commit comments

Comments
 (0)
0