Skip to content

[ENH] test for more than one parameter sets per estimator#2862

Merged
fkiraly merged 80 commits intomainfrom
test_num_test_params
Aug 12, 2023
Merged

[ENH] test for more than one parameter sets per estimator#2862
fkiraly merged 80 commits intomainfrom
test_num_test_params

Conversation

@fkiraly
Copy link
Copy Markdown
Collaborator

@fkiraly fkiraly commented Jun 24, 2022

In order to test parameter settings for estimators properly, each important parameter should have been set to a non-default.
This PR introduces a test which checks that there are at least two test parameter sets (if the estimator has at least one parameter), and correctness of these sets.

Requires:

Current estimators are not tested due to differential testing.

If diff testing is turned off, helps tracking down the estimators that do not yet have two parameter sets, see #3429.

@fkiraly fkiraly added the module:tests test framework functionality - only framework, excl specific tests label Jun 24, 2022
fkiraly added a commit that referenced this pull request Sep 21, 2022
Towards #3429. This adds a second parameter set for all estimators checked via `check_estimator` in the `no-softdeps` CI element.

This is generally useful, and also allows #2862 to pass that CI element.

Also fixes a bug discovered through this:
`ExponentTransformer.inverse_transform` breaking if `power` is close to zero. This is now dealt with by a skip and a warning.
@fkiraly
Copy link
Copy Markdown
Collaborator Author

fkiraly commented Jul 25, 2023

FYI @julia-kraus, the test failures point precisely to the estimators with only one test parameter set.

@fkiraly fkiraly marked this pull request as ready for review August 12, 2023 16:47
@fkiraly fkiraly added the enhancement Adding new functionality label Aug 12, 2023
@fkiraly fkiraly merged commit 9a384d5 into main Aug 12, 2023
@fkiraly fkiraly deleted the test_num_test_params branch August 12, 2023 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Adding new functionality module:tests test framework functionality - only framework, excl specific tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant