Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 3, 2024
1 parent 79ff37a commit 684c045
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sklearn_extra/kernel_methods/tests/test_eigenpro.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ def gen_classification(params):
@pytest.mark.parametrize(
"params, err_msg",
[
({"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."),
(
{"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.",
),
({"n_epoch": 0}, "n_epoch should be positive, was 0"),
({"n_epoch": -1}, "n_epoch should be positive, was -1"),
({"n_components": -1}, "n_components should be non-negative, was -1"),
Expand Down

0 comments on commit 684c045

Please sign in to comment.