8000 [MRG] Added 'l2' as acceptable input for loss in l1_min_c() (#11871) · scikit-learn/scikit-learn@c11206d · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit c11206d

Browse files
maxcopelandamueller
authored andcommitted
[MRG] Added 'l2' as acceptable input for loss in l1_min_c() (#11871)
* Adding 'l2' as acceptable input for loss in l1_min_c() * removed "l2" from error msg in l1_min_c() removed `"l2"` from error msg in l1_min_c(), consistent with acceptable `loss` params
1 parent dd4b528 commit c11206d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/svm/bounds.py

+1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def l1_min_c(X, y, loss='squared_hinge', fit_intercept=True,
5252
minimum value for C
5353
"""
5454
if loss not in ('squared_hinge', 'log'):
55-
raise ValueError('loss type not in ("squared_hinge", "log", "l2")')
55+
raise ValueError('loss type not in ("squared_hinge", "log")')
5656

5757
X = check_array(X, accept_sparse='csc')
5858
check_consistent_length(X, y)

0 commit comments

Comments
 (0)
0