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

Skip to content

Commit ea3d46d

Browse files
committed
reflect scikit-learn#14286: test for negative or null sample_weights in SVDD
1 parent 5baa034 commit ea3d46d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/svm/tests/test_svm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,9 @@ def test_svm_equivalence_sample_weight_C():
672672
(svm.SVR, "Invalid input - all samples have zero or negative weights."),
673673
(svm.NuSVR, "Invalid input - all samples have zero or negative weights."),
674674
(svm.OneClassSVM, "Invalid input - all samples have zero or negative weights."),
675+
(svm.SVDD, "Invalid input - all samples have zero or negative weights."),
675676
],
676-
ids=["SVC", "NuSVC", "SVR", "NuSVR", "OneClassSVM"],
677+
ids=["SVC", "NuSVC", "SVR", "NuSVR", "OneClassSVM", "SVDD"],
677678
)
678679
@pytest.mark.parametrize(
679680
"sample_weight",

0 commit comments

Comments
 (0)
0