CoolFace
Apppublic

evgueni-p/fbmc-chronos2

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
App README

FBMC Flow-Based Market Coupling Forecasting API

Zero-shot electricity cross-border flow forecasting for 38 European FBMC borders using Amazon Chronos-2.

๐Ÿš€ Quick Start

This HuggingFace Space provides a Gradio API for GPU-accelerated zero-shot forecasting.

How to Use (Web Interface)

  1. 1.Select run date: Choose the forecast date (YYYY-MM-DD format)
  2. 2.Choose forecast type:
  3. 3.Smoke Test: 1 border ร— 7 days (~30 seconds)
  4. 4.Full Forecast: All 38 borders ร— 14 days (~5 minutes)
  5. 5.Click "Run Forecast"
  6. 6.Download results: Parquet file with probabilistic forecasts

How to Use (Python API)

python
from gradio_client import Client

client = Client("evgueni-p/fbmc-chronos2")
result_file = client.predict(
    run_date="2025-09-30",
    forecast_type="smoke_test"
)

# Download and analyze locally
import polars as pl
df = pl.read_parquet(result_file)
print(df.head())

๐Ÿ“Š Dataset

Source: evgueni-p/fbmc-features-24month

  • โ€”Rows: 17,880 hourly observations
  • โ€”Date Range: Oct 1, 2023 - Oct 14, 2025
  • โ€”Features: 2,553 engineered features
  • โ€”Weather: 375 features (52 grid points)
  • โ€”ENTSO-E: ~1,863 features (generation, demand, prices, outages)
  • โ€”JAO: 276 features (CNEC binding, RAM, utilization, LTA, net positions)
  • โ€”Temporal: 39 features (hour, day, month, etc.)
  • โ€”Targets: 38 FBMC cross-border flows (MW)

๐Ÿ”ฌ Model

Amazon Chronos 2 (120M parameters)

  • โ€”Pre-trained foundation model for time series
  • โ€”Zero-shot inference (no fine-tuning)
  • โ€”Multivariate forecasting with future covariates
  • โ€”Dynamic time-aware data extraction (prevents leakage)

โšก Hardware

GPU: NVIDIA A10G (24GB VRAM)

  • โ€”Model inference: ~5 minutes for complete 14-day forecast
  • โ€”Recommended for production workloads

๐Ÿ“ˆ Performance Target

D+1 MAE Goal: <150 MW per border

This is a zero-shot baseline. Fine-tuning (Phase 2) expected to improve accuracy by 20-40%.

๐Ÿ” Requirements

Set HF_TOKEN in Space secrets to access the private dataset.

๐Ÿ› ๏ธ Technical Details

Feature Availability Windows

The system implements time-aware forecasting to prevent data leakage:

  • โ€”Full-horizon D+14 (603 features): Weather, CNEC outages, LTA
  • โ€”Partial D+1 (12 features): Load forecasts (masked D+2-D+14)
  • โ€”Historical only (1,899 features): Prices, generation, demand

Dynamic Forecast System

Uses DynamicForecast module to extract context and future covariates based on run date:

  • โ€”Context window: 512 hours (historical data)
  • โ€”Forecast horizon: 336 hours (14 days)
  • โ€”Automatic masking for partial availability

๐Ÿ“š Documentation

๐Ÿ”„ Phase 2 Roadmap

Future improvements (not included in zero-shot MVP):

  • โ€”Fine-tuning on FBMC data
  • โ€”Ensemble methods
  • โ€”Probabilistic forecasting
  • โ€”Real-time data pipeline
  • โ€”Production API

๐Ÿ‘ค Author

Evgueni Poloukarov

๐Ÿ“„ License

MIT License - See LICENSE file for details


Last Updated: 2025-11-14 Version: 1.0.0 (Zero-Shot MVP)