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

Skip to content

Commit 00f3279

Browse files
committed
reflect scikit-learn#14286: test for negative or null sample_weights in SVDD
1 parent 6bf0fb5 commit 00f3279

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
@@ -715,8 +715,9 @@ def test_svm_equivalence_sample_weight_C():
715715
(svm.SVR, "Invalid input - all samples have zero or negative weights."),
716716
(svm.NuSVR, "Invalid input - all samples have zero or negative weights."),
717717
(svm.OneClassSVM, "Invalid input - all samples have zero or negative weights."),
718+
(svm.SVDD, "Invalid input - all samples have zero or negative weights."),
718719
],
719-
ids=["SVC", "NuSVC", "SVR", "NuSVR", "OneClassSVM"],
720+
ids=["SVC", "NuSVC", "SVR", "NuSVR", "OneClassSVM", "SVDD"],
720721
)
721722
@pytest.mark.parametrize(
722723
"sample_weight",

0 commit comments

Comments
 (0)
0