This notebook transforms raw demand and weather data into ML-ready features. Feature categories:
Calendar indicators including Ontario statutory holidays. Holidays behave like weekends for demand purposes — commercial and industrial loads drop.
Transform raw temperature and humidity into domain-relevant indicators:
Lagged and rolling demand features capture system-level momentum. These are available by the morning of the prediction day.
These features are unique to the coincident peak prediction problem. They track the running top-5 peak state within each base period, providing the displacement threshold that defines whether a day could produce a new peak.
Critical: these are computed sequentially within each base period to prevent look-ahead bias.
Create the regression target (daily max demand) and binary classification labels (is this a top-5 peak day?) from ground truth data.
Merge all feature groups into a single daily-resolution feature matrix.