8000 reflect #14286: test for negative or null sample_weights in SVDD · ivannz/scikit-learn@45241d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 45241d5

Browse files
committed
reflect scikit-learn#14286: test for negative or null sample_weights in SVDD
1 parent ff36d2b commit 45241d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sklearn/svm/tests/test_svm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,11 @@ def test_svm_equivalence_sample_weight_C():
651651
(svm.NuSVR,
652652
'Invalid input - all samples have zero or negative weights.'),
653653
(svm.OneClassSVM,
654+
'Invalid input - all samples have zero or negative weights.'),
655+
(svm.SVDD,
654656
'Invalid input - all samples have zero or negative weights.')
655657
],
656-
ids=['SVC', 'NuSVC', 'SVR', 'NuSVR', 'OneClassSVM']
658+
ids=['SVC', 'NuSVC', 'SVR', 'NuSVR', 'OneClassSVM', 'SVDD']
657659
)
658660
@pytest.mark.parametrize(
659661
"sample_weight",

0 commit comments

Comments
 (0)
0