Skip to content

Commit 684c045

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 79ff37a commit 684c045

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sklearn_extra/kernel_methods/tests/test_eigenpro.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ def gen_classification(params):
3131
@pytest.mark.parametrize(
3232
"params, err_msg",
3333
[
34-
({"kernel": "not_a_kernel"}, "The 'metric' parameter of pairwise_kernels must be a str among {'cosine', 'poly', 'laplacian', 'polynomial', 'chi2', 'linear', 'sigmoid', 'additive_chi2', 'precomputed', 'rbf'} or a callable. Got 'not_a_kernel' instead."),
34+
(
35+
{"kernel": "not_a_kernel"},
36+
"The 'metric' parameter of pairwise_kernels must be a str among {'cosine', 'poly', 'laplacian', 'polynomial', 'chi2', 'linear', 'sigmoid', 'additive_chi2', 'precomputed', 'rbf'} or a callable. Got 'not_a_kernel' instead.",
37+
),
3538
({"n_epoch": 0}, "n_epoch should be positive, was 0"),
3639
({"n_epoch": -1}, "n_epoch should be positive, was -1"),
3740
({"n_components": -1}, "n_components should be non-negative, was -1"),

0 commit comments

Comments
 (0)