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] improvements to _ColumnEstimator - refactor to reduce coupling with BaseForecaster #4791

Merged
merged 12 commits into from Jul 20, 2023

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Jun 28, 2023

This improves the _HeterogenousMetaEstimator and _ColumnEstimator:

  • _HeterogenousMetaEstimator now allows tuples of any length in the _steps_attr, as long as the zeroth elements are str names, and the first elements are estimators
  • _ColumnEstimator._coerce_to_pd_index has been refactored so that a ref reference index is passed instead of assuming self._y is present (which is the case only in forecasters)

The change to _HeterogenousMetaEstimator is indirectly tested in #4789 and will be tested in scikit-base.

The change to _ColumnEstimator._coerce_to_pd_index is covered by existing tests as it is a re-factor that makes it more flexible (allowing #4789).

Depends on #4789 (and therefore indirectly on #4793)

@fkiraly fkiraly added enhancement Adding new functionality module:base-framework BaseObject, registry, base framework labels Jun 28, 2023
@fkiraly fkiraly changed the title [ENH] improvements to _HeterogenousMetaEstimator and _ColumnEstimator [ENH] improvements to _ColumnEstimator - refactor to reduce coupling with BaseForecaster Jun 29, 2023
@fkiraly fkiraly merged commit 110634e into main Jul 20, 2023
26 checks passed
@fkiraly fkiraly deleted the heterogenousmetaestimator-anytuples branch July 20, 2023 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding new functionality module:base-framework BaseObject, registry, base framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant