Skip to content

Conversation

@fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Aug 14, 2024

This PR introduces a scitype coercion and checking utility in the registry module, base functionality towards #6892.

The intended use is in the __init__ of estimators, allowing polymorphic composites. From a specification perspective, if used systematically, this would:

  • remove any user need to use adapters such as TabularTransformAdaptor
  • enable simpler specification where there is a single or most prominent reduction, such as various annotation subtypes to transformation, or time series aligner to time series distance

Replaces existing coercion or composition logic in some transformer related instances:

  • transformation pipeline dunders
  • compositors OptionalPassthrough

@fkiraly fkiraly added enhancement Adding new functionality module:base-framework BaseObject, registry, base framework labels Aug 14, 2024
@fkiraly
Copy link
Collaborator Author

fkiraly commented Aug 14, 2024

FYI @Alex-JG3, @RikStarmans, @benHeid, @yarnabrina

@fkiraly fkiraly self-assigned this Aug 14, 2024
@fkiraly fkiraly marked this pull request as ready for review August 16, 2024 09:37
@fkiraly
Copy link
Collaborator Author

fkiraly commented Aug 17, 2024

ready for review

@fkiraly fkiraly merged commit 4ec4781 into main Aug 30, 2024
@fkiraly fkiraly deleted the scitype-coercion branch August 30, 2024 12:19
benHeid pushed a commit to Z-Fran/sktime that referenced this pull request Oct 3, 2024
This PR introduces a scitype coercion and checking utility in the
`registry` module, base functionality towards sktime#6892.

The intended use is in the `__init__` of estimators, allowing
polymorphic composites. From a specification perspective, if used
systematically, this would:

* remove any user need to use adapters such as `TabularTransformAdaptor`
* enable simpler specification where there is a single or most prominent
reduction, such as various annotation subtypes to transformation, or
time series aligner to time series distance

Replaces existing coercion or composition logic in some transformer
related instances:

* transformation pipeline dunders
* compositors `OptionalPassthrough`
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

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants