Skip to content

Commit bf1691b

Browse files
committed
'none' is an acceptable value for penalty
1 parent 56ee99c commit bf1691b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/linear_model/stochastic_gradient.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ class SGDClassifier(BaseSGDClassifier, _LearntSelectorMixin):
591591
The other losses are designed for regression but can be useful in
592592
classification as well; see SGDRegressor for a description.
593593
594-
penalty : str, 'l2' or 'l1' or 'elasticnet'
594+
penalty : str, 'none', 'l2', 'l1', or 'elasticnet'
595595
The penalty (aka regularization term) to be used. Defaults to 'l2'
596596
which is the standard regularizer for linear SVM models. 'l1' and
597597
'elasticnet' might bring sparsity to the model (feature selection)
@@ -1100,7 +1100,7 @@ class SGDRegressor(BaseSGDRegressor, _LearntSelectorMixin):
11001100
function used in SVR. 'squared_epsilon_insensitive' is the same but
11011101
becomes squared loss past a tolerance of epsilon.
11021102
1103-
penalty : str, 'l2' or 'l1' or 'elasticnet'
1103+
penalty : str, 'none', 'l2', 'l1', or 'elasticnet'
11041104
The penalty (aka regularization term) to be used. Defaults to 'l2'
11051105
which is the standard regularizer for linear SVM models. 'l1' and
11061106
'elasticnet' might bring sparsity to the model (feature selection)

0 commit comments

Comments
 (0)