[ENH] refactor datatypes mtypes - example fixtures#458
Merged
Conversation
This was referenced Sep 18, 2024
fkiraly
added a commit
to sktime/sktime
that referenced
this pull request
Sep 24, 2024
…7133) Refactors the example fixtures in the `datatypes` module along the lines of sktime/skpro#458: * a base class for datatype examples, `BaseExample`, to replace the more ad-hoc dictionary design * a complete refactor of all `_example` submodules to this interface * a full refactor of the public framework module with `get_example` logic, in `datatypes`, to allow extensibility with this design Beyond the refactor, sets the `polars` requirements for the `polars` data examples to `polars>=1.0`, and adds `pyarrow` as a requirement, consistent with the status quo in `skpro`. Closes #7128, as it addresses the issue both from an isolation perspective, as well as the missing argument perspective.
benHeid
pushed a commit
to sktime/sktime
that referenced
this pull request
Feb 15, 2025
…7133) Refactors the example fixtures in the `datatypes` module along the lines of sktime/skpro#458: * a base class for datatype examples, `BaseExample`, to replace the more ad-hoc dictionary design * a complete refactor of all `_example` submodules to this interface * a full refactor of the public framework module with `get_example` logic, in `datatypes`, to allow extensibility with this design Beyond the refactor, sets the `polars` requirements for the `polars` data examples to `polars>=1.0`, and adds `pyarrow` as a requirement, consistent with the status quo in `skpro`. Closes #7128, as it addresses the issue both from an isolation perspective, as well as the missing argument perspective.
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.
This PR refactors the data type specifications and converters to classes.
Related: sktime/sktime#3512, related to sktime/sktime#2957.
Contains:
BaseExample, to replace the more ad-hoc dictionary designTableandProbamtype submodules to this interfaceget_examplelogic, indatatypes, to allow extensibility with this designPartial mirror in
skproof sktime/sktime#6033