Skip to content

[ENH] add _transform_score template and remove dead fmt related code from detectors#7425

Merged
fkiraly merged 13 commits intosktime:mainfrom
ShivamSingal:remove_fmt_attribute
Nov 24, 2024
Merged

[ENH] add _transform_score template and remove dead fmt related code from detectors#7425
fkiraly merged 13 commits intosktime:mainfrom
ShivamSingal:remove_fmt_attribute

Conversation

@ShivamSingal
Copy link
Copy Markdown
Contributor

@ShivamSingal ShivamSingal commented Nov 22, 2024

…res as an abstract method.

Reference Issues/PRs

Please see #7388 for more details.

What does this implement/fix? Explain your changes.

WIP (only addressed clasp, will address pyOD in future commits)

  • This PR is part of the effort to remove references to the _fmt attribute in child detectors, following its deprecation in [ENH] Rework of base series annotator API #6265.
  • The _fmt attribute was deprecated and hardcoded to sparse, making it non-configurable by users. Therefore, removing branching logic based on _fmt does not introduce regression, since methods like predict_scores already defaulted to sparse output which was expected.
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
  • 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.

@ShivamSingal ShivamSingal changed the title Remove fmt attribute [ENH] Remove fmt attribute Nov 22, 2024
fkiraly
fkiraly previously approved these changes Nov 22, 2024
Copy link
Copy Markdown
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.

Looks good - pure dead code removal, thanks!

@fkiraly fkiraly changed the title [ENH] Remove fmt attribute [ENH] add _transform_score template and remove dead fmt related code from detectors Nov 23, 2024
@fkiraly
Copy link
Copy Markdown
Collaborator

fkiraly commented Nov 24, 2024

@ShivamJ07 , thanks a lot for your work!

Some advice:

  • please ensure the code formatting checks run, I keep fixing them but I think your local settings systematically fail here
  • signal when you think a PR is done. You can work on it in draft mode while not complete

Copy link
Copy Markdown
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 am merging now - looks good.

We should keep PR small.

@fkiraly fkiraly merged commit ff9194e into sktime:main Nov 24, 2024
benHeid pushed a commit that referenced this pull request Feb 15, 2025
…ode from detectors (#7425)

Please see #7388 for more
details.

- This PR is part of the effort to remove references to the `_fmt`
attribute in child detectors, following its deprecation in
#6265.
- The _fmt attribute was deprecated and hardcoded to sparse, making it
non-configurable by users. Therefore, removing branching logic based on
_fmt does not introduce regression, since methods like `predict_scores`
already defaulted to sparse output which was expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants