-
Notifications
You must be signed in to change notification settings - Fork 688
[DO NOT MERGE] Experimental PR to demonstrate TimeXer
model usage with v2 design
#1830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Update comment
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
FYI @phoeenniixx @fkiraly |
Hi @PranavBhatP, Thanks for the PR! And how the implementation changes in v1 and v2? |
@phoeenniixx ,currently I do not have a comprehensive design for the D2 layer but here are some reasons why we need a separate D2 for
|
Yes, the observation that different models come with their specific loaders was the prime reason why we split D1 and D2, where D2 would be specific to models, and D1 would be unified/generic. So we should keep D1 but D2 probably needs to be completely new - I think this is a good exercise to check validity of our design! I anticipate we will learn a lot through this. PS: your code formatting checks are failing. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1830 +/- ##
=======================================
Coverage ? 81.92%
=======================================
Files ? 56
Lines ? 6030
Branches ? 0
=======================================
Hits ? 4940
Misses ? 1090
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:
|
Hi @PranavBhatP, I would suggest to merge |
You can use it now @phoeenniixx. |
context_length: int, | ||
prediction_length: int, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I am not very familiar with tslib
nomenclature, so I just want to ask can these context_length
and prediction_length
be mapped to any of the ptf-v2
metadata keys, like: max_encoder_lengths
etc? or are they totally different?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
context_length
and prediction_length
serve the same functionality as max_encoder_length
and max_decoder_length
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then will this not be a good idea to use data_module.metadata
to initialise them rather than making user to input these values again? ( as they entered the same info to data_module
as welll)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an old implementation from the v1 PR for TimeXer
. I had tried to make minimal breaking changes when making this PR, so it had still had the context and prediction length from v1. For the completely new D2 design, refer this.
In the v1 design, we override the context_length and prediction_length parameter inside from_dataset
(again a v1 feature). The same can be done here during init, it is just missing. I assumed this change wasn't required since this PR isn't going to be merged, and it was unnecessary.
FYI @PranavBhatP, as |
Description
This PR demonstrates compatibility of
TimeXer
with the exisiting D1 implementation. It does not reflect the final implementation or design of the model. It's implementation has been slightly tweaked to also work with the D2 layer (EncoderDecoderDataModule
) but with some changes to the data module.BaseModel
is also being inherited from. This will be replaced with 'BaseTSLibModel' in future commits, along with a dedicated D2 Layer fortslib
models only.Checklist
pre-commit install
.To run hooks independent of commit, execute
pre-commit run --all-files