Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tpvasconcelos
Copy link
Contributor

@tpvasconcelos tpvasconcelos commented Dec 17, 2023

Reference Issues/PRs

Relates to discussions had on #5630

What does this implement/fix? Explain your changes.

See #5630 (comment)

Does your contribution introduce a new dependency? If yes, which one?

What should a reviewer concentrate their feedback on?

Did you add any tests for the change?

Any other comments?

PR checklist

For all contributions
  • I've added myself to the list of contributors with any new badges I've earned :-)
    How to: add yourself to the all-contributors file in the sktime root directory (not the CONTRIBUTORS.md). Common badges: code - fixing a bug, or adding code logic. doc - writing or improving documentation or docstrings. bug - reporting or diagnosing a bug (get this plus code if you also fixed the bug in the PR).maintenance - CI, test framework, release.
    See here for full badge reference
  • Optionally, I've added myself and possibly others to the CODEOWNERS file - do this if you want to become the owner or maintainer of an estimator you added.
    See here for further details on the algorithm maintainer role.
  • The PR title starts with either [ENH], [MNT], [DOC], or [BUG]. [BUG] - bugfix, [MNT] - CI, test framework, [ENH] - adding or improving code, [DOC] - writing or improving documentation or docstrings.
For new estimators
  • I've added the estimator to the API reference - in docs/source/api_reference/taskname.rst, follow the pattern.
  • I've added one or more illustrative usage examples to the docstring, in a pydocstyle compliant Examples section.
  • If the estimator relies on a soft dependency, I've set the python_dependencies tag and ensured
    dependency isolation, see the estimator dependencies guide.

@tpvasconcelos tpvasconcelos changed the title [WIP][ENH] Simplify the BaseParamFitter's _get_fitted_params() [ENH] Simplify the BaseParamFitter's _get_fitted_params() Dec 17, 2023
@fkiraly fkiraly added enhancement Adding new functionality module:base-framework BaseObject, registry, base framework labels Dec 22, 2023
Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As suggested in this comment: #5630 (comment)

Could we try:

  • deleting the _get_fitted_params from BaseParamFitter
  • make changes in the BaseEstimator instead?

Alteratively, it might turn nout that we do need an override in BaseParamFitter, in that case we need to spell out the reason why we do - so in either case it would be useful to understand the inheritance tree here and the changes in logic this causes.

More details are discussed in #5630 (comment)

@fkiraly fkiraly marked this pull request as ready for review January 10, 2024 21:49
fkiraly
fkiraly previously approved these changes Jan 10, 2024
Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved your change up to BaseEstimator now - hope that's fine?

Btw, this should eventually be refactored into scikit-base, so it would be nice if you could make the same change there!

@fkiraly fkiraly changed the title [ENH] Simplify the BaseParamFitter's _get_fitted_params() [ENH] Simplify BaseEstimator._get_fitted_params() and BaseParamFitter inheritance of that method Jan 12, 2024
@fkiraly fkiraly merged commit 61031bd into sktime:main Jan 12, 2024
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.

2 participants