8000 [MRG] Added missing sag_solver documentation (#10172) · scikit-learn/scikit-learn@9808810 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9808810

Browse files
patrick1011lesteve
authored andcommitted
[MRG] Added missing sag_solver documentation (#10172)
1 parent 26421be commit 9808810

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sklearn/linear_model/sag.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,13 @@ def sag_solver(X, y, sample_weight=None, loss='log', alpha=1., beta=0.,
131131
*loss='multinomial'*
132132
133133
alpha : float, optional
134-
Constant that multiplies the regularization term. Defaults to 1.
134+
L2 regularization term in the objective function
135+
``(0.5 * alpha * || W ||_F^2)``. Defaults to 1.
136+
137+
beta : float, optional
138+
L1 regularization term in the objective function
139+
``(beta * || W ||_1)``. Only applied if ``is_saga`` is set to True.
140+
Defaults to 0.
135141
136142
max_iter : int, optional
137143
The max number of passes over the training data if the stopping

0 commit comments

Comments
 (0)
0