Unified CLI for the ENTSO-E single-target forecasting pipeline.
Drives the pipeline directly through spotforecast2.multitask.multi.MultiTask with ConfigEntsoe plugged in via the data_loader and forecaster_factory hooks introduced in ADR-001. The data loaders live in spotforecast2_safe.data.entsoe_loader; the LightGBM factory is the stock spotforecast2_safe.multitask.factories.default_lgbm_forecaster_factory. The CLI exposes four subcommands:
download — fetch raw data from the ENTSO-E Transparency Platform.
merge — concatenate raw CSVs into the interim merged file.
train — fit a model and save it to the cache.
predict — load the saved model and produce a forecast.
XGBoost ForecasterRecursive for the ENTSO-E pipeline.
Mirrors spotforecast2_safe.multitask.factories.default_lgbm_forecaster_factory but uses an XGBRegressor estimator. Lives here rather than in the safe package because xgboost is not a safe-package dependency.
Parameters
Name
Type
Description
Default
config
ConfigEntsoe
Any object exposing random_state, lags_consider, and window_size (typically ConfigEntsoe).
Entry point for the spotforecast2-entsoe console script.
Parses sys.argv and dispatches to one of four subcommands: download, merge, train, or predict. Calling with no subcommand prints the top-level help and returns.
Examples
import sysfrom spotforecast2.entsoe_cli import main# With no subcommand, main() prints the usage summary and returns# without error — useful for verifying the CLI is wired correctly.sys.argv = ["spotforecast2-entsoe"]main() # prints usage and returns normally
usage: spotforecast2-entsoe [-h] {download,train,predict,merge} ...
spotforecast2 ENTSO-E pipeline
positional arguments:
{download,train,predict,merge}
download Download raw ENTSO-E data
train Train a forecaster
predict Predict with a saved forecaster
merge Merge raw CSVs into the interim file
options:
-h, --help show this help message and exit