Skip to content

[ENH] Add multiloss support to ptf v2#2324

Draft
phoeenniixx wants to merge 1 commit into
sktime:mainfrom
phoeenniixx:multiloss
Draft

[ENH] Add multiloss support to ptf v2#2324
phoeenniixx wants to merge 1 commit into
sktime:mainfrom
phoeenniixx:multiloss

Conversation

@phoeenniixx

@phoeenniixx phoeenniixx commented Jun 24, 2026

Copy link
Copy Markdown
Member

This PR adds support for MultiLoss to ptf v2

Fixes #2308

Changes

  • Add weights to the collate_fn and __getitem__ (of private dataset class of datamodule) return for MultiLoss. The return would be (x, (y, weight)) in place of (x,y).
    Done to:
    • EncoderDecoderTimeSeriesDataModule
    • TslibDataModule
  • Add support to BaseModel.
  • Add tests and update the test framework

@phoeenniixx phoeenniixx self-assigned this Jun 24, 2026
@phoeenniixx phoeenniixx added enhancement New feature or request module:models module:datasets&dataloaders ptf-v2 Related to `pytorch-forecasting` v2 labels Jun 24, 2026
@phoeenniixx

Copy link
Copy Markdown
Member Author

Tests will fail fs
Still need to add support to tslib modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request module:datasets&dataloaders module:models ptf-v2 Related to `pytorch-forecasting` v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENH] Add MultiLoss and multi-target support to ptf-v2

1 participant