Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a020223

Browse files
committed
change test for misleading ValueError in OneClassSVM
1 parent 48a8f21 commit a020223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/svm/tests/test_svm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def test_oneclass():
257257
assert_array_almost_equal(clf.dual_coef_,
258258
[[0.632, 0.233, 0.633, 0.234, 0.632, 0.633]],
259259
decimal=3)
260-
assert_raises(ValueError, lambda: clf.coef_)
260+
assert_raises(AttributeError, lambda: clf.coef_)
261261

262262

263263
def test_oneclass_decision_function():

0 commit comments

Comments
 (0)