Nikhil Gupta
06/17/2025, 4:22 PMID_COL = "unique_id"
TIME_COL = "date"
TARGET_COL = "qty"
new = pd.DataFrame({
ID_COL: ['270*28'],
TIME_COL: pd.date_range(start='2022-10-31', periods=1, freq=freq),
TARGET_COL: [1]
})
forecast_new = nixtla_client.forecast(
df=new,
**{
'h': 52,
'freq': 'W-MON',
'model': 'timegpt-1-long-horizon',
# 'date_features': ['week', 'month', 'year'],
'id_col': 'unique_id',
'time_col': 'date',
'target_col': 'qty'
}
)
Olivier Sprangers
06/17/2025, 4:32 PMNikhil Gupta
06/17/2025, 4:32 PMI think it's probably due to the limited amount of datapoints, but of course we should be able to easily do better here.... (just forecast the same value)
The problem is that there are too many series like this and it is really inflating the top level forecasts (aggregated)Nikhil Gupta
06/17/2025, 4:33 PMAnd that's why I said you should add it to the list ofnsupported models
How so I do that? I am using the public APIOlivier Sprangers
06/17/2025, 4:34 PMNikhil Gupta
06/17/2025, 4:34 PMOlivier Sprangers
06/17/2025, 4:35 PMNikhil Gupta
06/17/2025, 4:35 PMOlivier Sprangers
06/17/2025, 4:36 PMOlivier Sprangers
06/17/2025, 4:36 PMNikhil Gupta
06/17/2025, 4:36 PMOlivier Sprangers
06/17/2025, 4:37 PMOlivier Sprangers
06/17/2025, 4:38 PMNikhil Gupta
06/17/2025, 4:38 PMNikhil Gupta
06/17/2025, 4:38 PMYou could also try prepending zeros, maybe that helps
Nikhil Gupta
06/17/2025, 4:38 PM