Skip to main content
ByPaul Egorov
Tomorrow’s 24 hourly power prices from the raw price series: no GPU, no training, no feature engineering. Power traders bid today for every hour of tomorrow. When they bid, they know the prices up to today and the published forecasts of load and of wind and solar output for tomorrow. This notebook forecasts German day-ahead prices with TabPFN-TS through the Prior Labs API, and compares it with Chronos-2, a leading forecasting model, on identical inputs.
  • 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:
  1. Create a key at platform.priorlabs.ai/account/api-keys.
  2. In Colab, click the key icon in the left sidebar, add a secret named TABPFN_TOKEN with your key, and switch on notebook access. Outside Colab, set the TABPFN_TOKEN environment variable. If neither is set, the notebook asks for the key; the input is hidden.
  3. 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.
Data

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. How the backtest works: for each delivery day, the models see prices up to 23:00 the day before and the load and wind+solar forecasts for the delivery day 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 average hides where the models differ. The table gives each model’s MAE in EUR/MWh for all hours, for weekday peak hours (8:00 to 20:00), and for the 10% of test hours with the highest wind+solar forecast. A negative difference means TabPFN-TS has the lower error.
Accuracy 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.
Accuracy
On Sunday 29 October the price stays near −80 EUR/MWh until mid-afternoon. Both models see the drop coming, but only TabPFN-TS keeps its median at that level; Chronos-2 drifts back towards −40 by midday. Over the whole day the price averaged −51 EUR/MWh; TabPFN-TS forecast −46 and Chronos-2 −33. That gap matters for any decision that depends on the day’s price level, such as a position on the daily average price or whether to keep a plant running.

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 COVARIATES with any drivers known a day ahead, and try a longer history with max_context_length (up to 32,768 hours). To see why the model forecasts what it does, see the time series interpretability cookbook.