-
Notifications
You must be signed in to change notification settings - Fork 80
[BUG] Check pytorch-forecasting models with freq > "1D" #463
Conversation
Codecov Report
@@ Coverage Diff @@
## master #463 +/- ##
=======================================
Coverage 87.98% 87.98%
=======================================
Files 115 115
Lines 5441 5441
=======================================
Hits 4787 4787
Misses 654 654
Continue to review full report at Codecov.
|
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.
One detail confuses me. But I guess that's because I don't know something about PF.
# making time_idx feature. | ||
# it's needed for pytorch-forecasting for proper train-test split. | ||
# it should be incremented by 1 for every new timestamp. | ||
df_flat["time_idx"] = (df_flat["timestamp"] - self.min_timestamp) // pd.Timedelta("1s") |
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.
Why do we need to keep only remainder of the division?
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.
It's just casting timestamp delta to integer.
IMPORTANT: Please do not create a Pull Request without creating an issue first.
Before submitting (must do checklist)
Type of Change
Proposed Changes
Related Issue
Closing issues
closes #452