Repository navigation
test(transformers): run check_estimator on the Fourier and kernel maps - #143
Merged
mkumar73 merged 2 commits intoNov 27, 2026
Merged
Conversation
FourierFeatureTransformer, RandomFourierFeaturesTransformer and NystroemFeaturesTransformer were in neither tier of the scikit-learn conformance suite, so nothing guarded their estimator contract. All three pass every check_estimator check, on the locked dependencies and on the minimum supported ones (Python 3.10, scikit-learn 1.6.0), so they join the near-conformant tier without tolerated failures: a future regression in any check now fails the suite.
mkumar73
approved these changes
Nov 27, 2026
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FourierFeatureTransformer,RandomFourierFeaturesTransformerandNystroemFeaturesTransformerwere in neither tier oftests/transformers/test_sklearn_compat.py, so nothing guarded their estimator contract.All three pass every
check_estimatorcheck, so they join the near-conformant tier without tolerated failures: a regression in any check now fails the suite. Test-only change.Also verified on the minimum-dependency set of the CI job (Python 3.10, numpy 1.24.4, pandas 2.0.3, scipy 1.10.1, scikit-learn 1.6.0).
Validation
Checks: full suite (2547 passed, 59 skipped, 7 xfailed, coverage >= 94.79%),
ruff format/ruff check, pyright (no new diagnostics), docs build with-W,scripts/quickstart.py. Merges cleanly withmainand with #136.