- Data: hourly EPEX-DE prices and forecasts, 2012–2017.
- Test: 84 days across 2017, each forecast using only what was known the day before.
- Result: TabPFN-TS has the lower error, most clearly when wind and solar output is high.
Setup
TabPFN-TS runs on the Prior Labs API, so the notebook needs an API key. To run it:- Create a key at platform.priorlabs.ai/account/api-keys.
- In Colab, click the key icon in the left sidebar, add a secret named
TABPFN_TOKENwith your key, and switch on notebook access. Outside Colab, set theTABPFN_TOKENenvironment variable. If neither is set, the notebook asks for the key; the input is hidden. - Run all cells. The install step may print a pip warning about
requests; it can be ignored.
Data
Hourly EPEX-DE day-ahead prices (EUR/MWh) for 2012–2017, with the day-ahead Amprion load forecast and the wind+solar forecast. The file is the open-access benchmark dataset of Lago et al. (2021), published with their epftoolbox. The test set is 12 weeks of 2017, one every four weeks from 16 January, so every season is in it, including the windy week of 23–29 October.
How the backtest works
We replay 84 trading days. For each delivery day, both models see only what a trader knows at the auction the day before, and nothing is trained: each forecast reads the history directly.
No features are built by hand; TabPFN-TS creates its own (see the tabpfn-time-series repo).
Forecast
Both models return nine quantiles (10% to 90%) for each of the 24 delivery hours; the median is the point forecast.TabPFN-TS
One API fit per delivery day, 84 in total, sent a week at a time. This takes a few minutes, depending on API load; the API allows 60 fits per minute, so the function waits and retries when it hits the limit.Chronos-2
Chronos-2 runs on your machine, on the same windows: under a minute on a GPU, several minutes on a CPU. In Colab, this notebook asks for a GPU runtime. TabPFN-TS, on the API, needs no local compute.Accuracy
Baseline: the naive rule of Lago et al. (2021), the same hour one week earlier for Monday, Saturday and Sunday, and one day earlier otherwise. rMAE = MAE / naive MAE. 80% coverage is the share of hours with the actual price between the 10% and 90% quantiles; 80% is ideal.
The bands come from the same fit as the point forecast: TabPFN predicts a full distribution for every hour, so any quantile is available at no extra cost (see the predictive distribution cookbook). Below: the week of 23–29 October, when strong wind pushed prices below zero, with the 10–90% and 30–70% quantile bands.
Takeaways
- Lower error on identical inputs. TabPFN-TS beats Chronos-2 on these weeks, most clearly when wind and solar output is high. Its 10–90% band holds the actual price 81% of the time, as promised.
- No feature engineering, no training. One API fit per day on the raw prices and the two published forecasts gives the full quantile forecast.
- Backtest before you trade. Both models saw the same history and inputs, but 12 weeks are a small sample. Check the result over at least a year on your own market.
- Adapt it. Replace the data file and the columns in
COVARIATESwith any drivers known a day ahead, and try a longer history withmax_context_length(up to 32,768 hours). To see why the model forecasts what it does, see the time series interpretability cookbook.