sktime/sktime

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

Open

#9324 opened on Feb 5, 2026

View on GitHub
 (4 comments) (0 reactions) (1 assignee)Python (7,162 stars) (1,192 forks)batch import
enhancementgood first issuemodule:classificationmodule:deep-learning&networks

Description

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.

Contributor guide