[ENH] softs_v2 Model added#2232
Open
Muhammad-Rebaal wants to merge 10 commits into
Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2232 +/- ##
=======================================
Coverage ? 86.95%
=======================================
Files ? 170
Lines ? 9900
Branches ? 0
=======================================
Hits ? 8609
Misses ? 1291
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Referencing #2231
Hi @fkiraly , @phoeenniixx, @PranavBhatP !
I have implemented the SOFTS (Star Aggregate-Dispatch for Time Series Forecasting) model within the PyTorch Forecasting v2 architecture.
Could you please review the PR?
Here is a summary of the changes made:
(pytorch_forecasting/layers/_blocks/_softs_block.py): Implemented the core neural network components, specifically the novel STADModule (Star Aggregate-Dispatch mechanism) and the SoftsEncoderLayer, completely isolated from the base estimating logic to strictly adhere to the project's v2 architectural standards.(pytorch_forecasting/models/softs/): Created the main Softs estimator wrapper which inherits from TslibBaseModel. It effectively handles dynamic feature input alignments (history_cont and history_target), optionally applies RevIN scaling, and routes the forward pass through the STAD-based encoders.(_softs_pkg_v2.py): Established the Softs_pkg_v2 class representing model metadata (capability tags, compute requirements) and defined automated testing configurations (get_test_train_params) tightly integrated with the underlying TslibDataModule.__init__.pyfiles across the layers and models directories to properly expose Softs, Softs_pkg_v2, and the STAD blocks to the broader PyTorch Forecasting ecosystem.Thank you!