sktime icon indicating copy to clipboard operation
sktime copied to clipboard

[ENH] Migrate mvts_transformer classifier from old `_pytorch.py` to new `_base_torch.py` interface

Open RecreationalMath opened this issue 9 months ago • 4 comments

Is your feature request related to a problem? Please describe.

This is a sub-issue of #8699 Migrate the mvts_transformer classifier (implemented in sktime/sktime/classification/deep_learning/) from the old _pytorch.py to new _base_torch.py interface.

Describe the solution you'd like

Currently MVTSTransformerClassifier class inherits from BaseDeepClassifierPytorch class implemented in sktime.classification.deep_learning._pytorch.

Change the inheritance to BaseDeepClassifierPytorch class implemented in sktime.classification.deep_learning.base and ensure non-breakage of current behaviour. If there is a breakage, investigate and implement the fix for a successful migration.

Expectations of the task:

  • Compare the _pytorch.py with _base_torch.py and share your observations on places where there are differences and possible chances of breakage when migrating the mvtc_transformer classifier.
  • Thoughts/ideas on addressing those differences/breakages.
  • Corresponding implementation for the successful migration.

RecreationalMath avatar Feb 05 '26 17:02 RecreationalMath

Hey @RecreationalMath I worked on this issue properly, moreover I tested it all and migration is working successfully. I've raised and linked the proof there. PTAL. Thanks.

Ashu463 avatar Feb 10 '26 07:02 Ashu463

I see multiple PRs on this. FYI I'll adopt the FIFO principle for these requests. @sabasiddique1's PR has been dormant for two weeks after receiving the initial feedback/review. So moving on to the next contributor in the queue @Ashu463 .

RecreationalMath avatar Feb 20 '26 08:02 RecreationalMath

@RecreationalMath I would like to work on this issue. !!!!

My understanding of the task is:

  • Migrate the MVTS_TransformerClassifier from the old _pytorch.py interface to the new _base_torch.py interface.
  • Update the class inheritance accordingly.
  • Ensure that the existing functionality and behavior remain unchanged after migration.

My approach would be:

  • Review and compare the implementations of _pytorch.py and _base_torch.py.
  • Identify the required changes in the classifier implementation.
  • Update the inheritance and related methods to follow the new interface.
  • Run the existing tests to confirm that the migration does not introduce regressions.

---->> If the issue is still available, please assign it to me.

saurabhyuvi14-ai avatar Mar 07 '26 07:03 saurabhyuvi14-ai

Hey @saurabhyuvi14-ai welcome to the repository, but I'm assigned to this issue and already have made PR and bunch of follow ups there. So would urge to move forward with other open unassigned issues. Please ping me if you need any help. Thanks.

Ashu463 avatar Mar 07 '26 09:03 Ashu463