tasks.task_entsoe

tasks.task_entsoe

Unified CLI task script for ENTSO-E data downloading, model training, and prediction.

This script acts as the main entry point for the forecasting pipeline, integrating downloading, training, and plotting functionalities.

Usage

uv run python src/spotforecast2/tasks/task_entsoe.py download –api-key uv run python src/spotforecast2/tasks/task_entsoe.py train lgbm uv run python src/spotforecast2/tasks/task_entsoe.py predict –plot

Environment Variables

ENTSOE_API_KEY: The API key for ENTSO-E Transparency Platform.

Classes

Name Description
ForecasterRecursiveLGBM LGBM forecaster with config-injected defaults.
ForecasterRecursiveXGB XGBoost forecaster with config-injected defaults.

ForecasterRecursiveLGBM

tasks.task_entsoe.ForecasterRecursiveLGBM(iteration, lags=12, **kwargs)

LGBM forecaster with config-injected defaults.

Ensures all model instances use consistent configuration values from ConfigEntsoe for periods, country_code, and random_state.

ForecasterRecursiveXGB

tasks.task_entsoe.ForecasterRecursiveXGB(iteration, lags=12, **kwargs)

XGBoost forecaster with config-injected defaults.

Ensures all model instances use consistent configuration values from ConfigEntsoe for periods, country_code, and random_state.