Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 80 commits into from Aug 12, 2023

Conversation

fkiraly
Copy link
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
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
25 checks passed
@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.

None yet

1 participant