-
|
I'm using the Energy Price Forecasting example in the chronos-2-quickstart notebook to forecast prices for a different energy market. The
However, forecasts aren't plotted as in the example: The historical target, the future target (ground truth), the forecast and the prediction interval seem to be bunched together at the left, and the only timestamp shown is the first hourly interval in the prediction period, instead of the dates of of the historical period, as in the example. What could be happening? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
It looks like you're using a custom dataset here, not the energy price from the quick start notebook. Please check if you are passing all arguments to the plotting function correctly: def plot_forecast(
context_df: pd.DataFrame,
pred_df: pd.DataFrame,
test_df: pd.DataFrame,
target_column: str,
timeseries_id: str,
id_column: str = "id",
timestamp_column: str = "timestamp",
history_length: int = 256,
title_suffix: str = "",
): |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I'm importing my external dataset from a CSV file, and the timestamp field was being imported with The figures then display correctly. |
Beta Was this translation helpful? Give feedback.




I'm importing my external dataset from a CSV file, and the timestamp field was being imported with
dtype object. Upon @kabaros' suggestion, these two lines convert the timestamps inenergy_context_dfandenergy_test_dftodatetime64[ns](energy_future_dfdoesn't need fixing because its timestamp is generated withdtype datetime64[ns]):The figures then display correctly.