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] merge sktime BaseEstimator into skbase BaseEstimator #370

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

fkiraly
Copy link
Contributor

@fkiraly fkiraly commented Oct 1, 2024

This merges some minor improvements from sktime BaseEstimator into skbase BaseEstimator:

  • docstring formatting
  • clearer error messages
  • deduplicating logic with check_is_fitted calls

Accompanies sktime/sktime#7213, see there for explanation of merge and deduplication.

@fkiraly fkiraly added the documentation Documentation & tutorials label Oct 1, 2024
@fkiraly fkiraly changed the title [DOC] merge sktime BaseEstimator into skbase BaseEstimator [ENH] merge sktime BaseEstimator into skbase BaseEstimator Oct 1, 2024
@fkiraly fkiraly added the enhancement Adding new functionality label Oct 1, 2024
@fkiraly fkiraly merged commit c71dfe8 into main Oct 4, 2024
24 checks passed
fkiraly added a commit to sktime/sktime that referenced this pull request Oct 18, 2024
This PR removes a leftover duplication from the `sktime`-to-`skbase`
refactor - the content of the `sktime` `BaseEstimator` class.

I have manually gone through the code step-by-step and verified
equivalence.

The only changes/differences were:

* setting the `GET_FITTED_PARAMS_NESTING` attribute
* changes in docstring formatting that were applied in `sktime` but not
in `skbase` - I have moved these to a new PR in `skbase`,
sktime/skbase#370
* `skbase` hase a safe "get fitted params" subroutine implemented, this
is an improvemnet above `sktime` so does not need to be removed

As a side issue, the `NotFittedError` in `sktime.exceptions` also needed
to be replaced by the `skbase` one, to ensure tests and user code does
not fail (due to different class identitites of two `NotFittedError`-s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation & tutorials enhancement Adding new functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant