Views
No views yet
NL)EUR/MWhNL)| Metric | LightGBM Forecaster | 7-Day Seasonal Persistence | Improvement |
|---|---|---|---|
| MAE | 8.314 EUR/MWh | 42.456 EUR/MWh | +80.4% |
| RMSE | 21.564 EUR/MWh | — | — |
1import pandas as pd
2from huggingface_hub import hf_hub_download
3import joblib
4
5# 1. Download model artifacts
6model_path = hf_hub_download(repo_id="ORGANIZATION/netherlands-price-forecaster", filename="models.joblib")
7models = joblib.load(model_path)
8
9# 2. Predict P10, P50 (point), and P90 quantiles
10X_test = pd.read_csv("sample_input.csv")
11p10 = models[0.1].predict(X_test)
12p50 = models[0.5].predict(X_test)
13p90 = models[0.9].predict(X_test)
14
15print("Forecast Point Estimate:", p50[:5])
16print("80% Lower Bound (P10):", p10[:5])
17print("80% Upper Bound (P90):", p90[:5])hourquarterday_of_weekday_of_yearmonthis_weekendis_holidayis_morning_peakis_evening_peaksin_hourcos_hoursin_day_of_weekcos_day_of_weeksin_day_of_yearcos_day_of_yearlag_1hlag_2hlag_3hlag_4hlag_24hlag_48hlag_7dlag_14ddiff_1hdiff_2hdiff_24hdiff_7dacceleration_1hema_4stepema_12steprolling_std_4steprolling_mean_24hrolling_std_24hrolling_min_24hrolling_max_24hrolling_mean_7drolling_std_7d