Skip to content

[ENH] second param sets for selected estimators#3428

Merged
fkiraly merged 4 commits intomainfrom
some-param-sets
Sep 21, 2022
Merged

[ENH] second param sets for selected estimators#3428
fkiraly merged 4 commits intomainfrom
some-param-sets

Conversation

@fkiraly
Copy link
Copy Markdown
Collaborator

@fkiraly fkiraly commented Sep 14, 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.

... and we already discovered a bug, which I suppose proves that #3429 is generally a good idea.
The bug is ExponentTransformer.inverse_transform breaking if power is close to zero. This is now dealt with by a skip and a warning.

@fkiraly fkiraly added maintenance Continuous integration, unit testing & package distribution module:tests test framework functionality - only framework, excl specific tests labels Sep 14, 2022
@fkiraly fkiraly merged commit 63be625 into main Sep 21, 2022
@fkiraly fkiraly deleted the some-param-sets branch September 21, 2022 20:50
fkiraly added a commit that referenced this pull request Aug 12, 2023
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:
* #4279 for the general test for
`get_test_params` (no specific number assumed)
* #2835 as it uses
the parameter name interface
* #3428 to pass the
`no-softdeps` step.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Continuous integration, unit testing & package distribution 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