Skip to content

Conversation

@elmartinj
Copy link
Contributor

Hello!

After diving into the whole, why does Moirai behave weird on the crypto example I noticed that this dataset in particular was hanging in an edge case for Gluonts handling. I gave it a fix by auditing the possibility of a useful timeshift (while preserving the detected seasonality) to make it Gluonts friendly and de-shift this change prior to emitting the forecast. This is through full disclosure with the user.

Feel free to let me know if it needs any form of further work or fixing.

elmartinj and others added 10 commits December 2, 2025 17:30
This tutorial contains an example with multiple indexes and subsequent tampering to the data in order to show resiliency and a real life use case of TC applied on cryptocurrency prices up to 2021.
Fix to the issue raised on empty dataframe, resulting from an inner merge where the existing dataframe that accumulated results and the newer one had diferent indices. A subsequent issue must be raised to either: 
1 report a single model failure (on index matching) 
2 fix the moirai discrepancy (only model that showed this issue)
…These involve a specific edge case where ds are too close to the granularity received by the gluons packages; the idea is to dephase by a repeated (more than 80%) time value in order to normalize the whole index, while preserving the previously detected stationality (and of course, the data within). The forecasting is then done and the time index fixed. Another important addition is that whenever this funcionality is harnessed, the user receives notification through the console, so no blackboxing is done when shifting ds column to make it compatible with gluonts
@spolisar
Copy link
Collaborator

Just took a quick look, are these prints intended to be present? Or just something from testing that you forgot to remove?
https://github.com/elmartinj/timecopilot/blob/ced550d0ee9045bd720445b4de089af077b3f1d3/timecopilot/models/utils/gluonts_forecaster.py#L295-L296

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants