EpexPredictor icon indicating copy to clipboard operation
EpexPredictor copied to clipboard

Reproducability of performance_testing.py

Open lennil33t opened this issue 2 months ago • 4 comments

Hello,

first of all thank you for providing the predictor. As far as I can see it produces the best results of any free predictor.

While experimenting with coal and ETS (carbon pricing) prices, I figured that I can't precisely reproduce your results. I'm not an expert in LightGBM determinism but find it a bit strange. It is a minor issue though. I ran DE only as my Laptop is a bit weak.

For a time range of 2025-09-01 to 2026-09-01, with 362 iterations:

Before (single-stage baseline, natural gas prices only):

Region 1d RMSE 1d MAE 2d RMSE 2d MAE 3d RMSE 3d MAE
DE 3.05 1.89 3.28 2.03 3.40 2.09

Regarding my trials:

After (single-stage baseline, natural gas + ETS + coal prices):

Region 1d RMSE 1d MAE 2d RMSE 2d MAE 3d RMSE 3d MAE
DE 3.01 1.87 3.27 2.02 3.34 2.07

Hardly any influence. In case of ETS I suspect it's because of too little variation. In case of coal my guess would be that the lignite to hard coal ratio in Germany is the reason, as lignite prices are independent of hard coal prices and Germany uses much more lignite than hard coal. Would be interesting to experiment with a Poland predictor, where it is the other way around.

Best regards, Lenni

lennil33t avatar Sep 13 '26 15:09 lennil33t

Looks indeed like not worth adding the additional data source (more sources = more potential for sources to go offline/change API/...).

Regarding reproducability: Hard to tell. Yes, lgbm is not 100% deterministic, but that should cause less difference than what you see. I think one or more of these points have a stronger effect:

  • Maybe no Entso-E API key set for the test?
  • Maybe "dirty" cache?

By dirty cache I mean this: Whenever you run any forecasting (API/Eval), it will fetch any missing data that is required. If you e.g. ran the API tests last weekend and then stopped, it might have fetched a 7+ day forecast for the days after last weekend. If you then run it again this weekend, it will see that data for last week is already present and not re-fetch it. -> your weather data of last week is now an arbitrarily bad forecast instead of historical data.

EDIT: during constant API use, forecasts will of course be re-fetched regularly.

b3nn0 avatar Sep 14 '26 04:09 b3nn0

Hmm I deleted all cached data before the tests so it grabs everything fresh. I don't have an Entso-E key right now because they don't bother to reply, but it shouldn't make a difference for DE?

lennil33t avatar Sep 22 '26 19:09 lennil33t

In the two-stage model it does matter since some countries are not available to serve as a base model without one.

b3nn0 avatar Sep 22 '26 19:09 b3nn0

Sure, but I ran single-stage model.

lennil33t avatar Sep 24 '26 16:09 lennil33t