File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -653,11 +653,11 @@ The :class:`LogisticRegression` class can be used to do L1 or L2 penalized
653
653
logistic regression. Binary class L2 penalized logistic regression can be
654
654
formulated as the solution to the optimization problem
655
655
656
- .. math :: \underset{w}{min\,} \frac{1}{2}w^T w + C \sum_{i=1}^n \log(\exp(- y_i X_i w ) + 1)
656
+ .. math :: \underset{w, c }{min\,} \frac{1}{2}w^T w + C \sum_{i=1}^n \log(\exp(- y_i ( X_i^T w + c) ) + 1)
657
657
658
658
Similarly, L1 regularized logistic regression solves the following optimization problem
659
659
660
- .. math :: \underset{w}{min\,} \|w\|_1 + C \sum_{i=1}^n \log(\exp(- y_i X_i w ) + 1)
660
+ .. math :: \underset{w, c }{min\,} \|w\|_1 + C \sum_{i=1}^n \log(\exp(- y_i ( X_i^T w + c) ) + 1)
661
661
662
662
L1 penalization yields sparse predicting weights.
663
663
For L1 penalization :func: `sklearn.svm.l1_min_c ` allows to calculate
You can’t perform that action at this time.
0 commit comments