GIEE Load Forecasting Lab Kit
GIEE Education and Publications Department | www.giee.org
Companion to the article "How to Train a Machine Learning Model to Forecast Electric Load"

FILES
  GIEE_Load_Forecasting_Lab.ipynb        Google Colab notebook (Python track, about 30 minutes)
  giee_substation_load_2024_2025.csv     17,544 hourly rows: timestamp, load_MW, temp_C, temp_F, is_holiday
  GIEE_Load_Forecasting_Excel_Lab.xlsx   Excel workbook (no-code track, about 15 minutes)
  README.txt                             This file

PYTHON TRACK
  1. Go to https://colab.research.google.com and choose File > Upload notebook.
  2. Optional: upload the CSV with the folder icon on the left (the notebook rebuilds
     the identical dataset if you skip this).
  3. Run each cell with Shift + Enter and compare with the "Expected output" box.
  Tested with xgboost 2.1.4 (installed by Step 1), numpy 2.3, pandas 2.3, scikit-learn 1.9.

EXCEL TRACK
  Open the workbook, read the "Read me" sheet, then change the orange cells on "Model".
  Calculation must be Automatic (Formulas > Calculation Options).

EXPECTED RESULTS (train 2024, test 2025)
  Baseline (same hour last week)   MAPE 7.51 %   MAE 1.45 MW
  Linear regression                MAPE 5.70 %   MAE 1.04 MW
  XGBoost                          MAPE 3.22 %   MAE 0.63 MW
  2025 peak 2025-08-01 17:00       actual 37.1 MW, XGBoost 34.3 MW, linear 33.9 MW
  Bias on top 1% hours (88 h)      baseline -2.83 MW, linear -0.83 MW, XGBoost -0.85 MW
  Try It: 2 deg C forecast error   XGBoost MAPE about 5.0 %
  Try It: no load_lag_168h         XGBoost MAPE about 3.1 %
  Excel daily peak model (18/15)   a 17.78, b 1.128, c 0.398, d -1.45, R2 0.961, MAPE 4.15 %
  Excel with cooling base 22 C     MAPE 2.98 %

The data is synthetic, generated by GIEE for education. It describes no real utility.
Share your result on LinkedIn with #GIEElab.
