Glossary¶
The terms of energy systems, weather and machine learning that this documentation uses, in alphabetical order. Each term has a link you can share, such as glossary/#gross-demand.
A–C¶
Annual electricity demand per capita¶
The electricity a country uses in a year divided by its population, in kWh per person. DemandCast multiplies it by the population to get the annual demand that the hourly forecast must add up to. See Inputs.
API key¶
A secret code that a website gives you to download its data. DemandCast reads the keys from demandcast/.env. See Install.
ARCO-ERA5¶
A copy of ERA5 on Google Cloud, readable without an account. One of the options of reanalysis_source.
Bucket¶
A storage container in Google Cloud Storage. sync.py copies the data folder to and from a private bucket. See Share the data folder.
CDS¶
The Copernicus Climate Data Store, which serves ERA5 and the CMIP6 climate projections. It needs the CDS_API_KEY.
Climate model¶
A computer simulation of the future climate, such as CESM2. Each one gives a different possible future weather for the same scenario.
CMIP6¶
The sixth Coupled Model Intercomparison Project: the set of climate models whose projections give the future temperature. Its scenarios are written like SSP2-4.5.
Code¶
The name of an entity: the ISO 3166 alpha-3 code of a country, such as FRA, or the code of the country and of a subdivision joined by an underscore, such as USA_CAL.
Compiled data source¶
A data source that republishes the data of system operators, such as the EIA or ENTSO-E. The combination prefers the operators' own data to a compiled copy.
Cross-validation¶
A test of a model on entities that it never saw in training: each fold leaves out one entity (or one country with its subdivisions), trains on the rest, and measures the error on the one left out. It estimates the error for places without data. See Cross-validate.
D–F¶
Data folder¶
The folder where the scripts write everything: demandcast/data/, or the folder named by the environment variable DEMANDCAST_DATA_FOLDER. See Data folder.
Data source¶
A website or dataset that publishes hourly electricity demand, such as ENTSO-E. Each one has a Python module and a YAML file in retrievals/electricity_demand_data_sources/. See Data sources.
Daylight saving time¶
The seasonal shift of clocks by one hour. DemandCast stores times in UTC, so a day in local time can have 23 or 25 hours.
Embedded generation¶
Electricity generated inside the distribution networks or behind consumers' meters, such as rooftop solar. The network operators often do not see it, so their demand data can leave it out. See net demand.
Entity¶
A country or subdivision that DemandCast retrieves data for, trains on or forecasts, named by its code.
ERA5¶
The global hourly record of past weather (a reanalysis) produced by ECMWF, on a grid of 0.25° (about 25 km). DemandCast takes the past temperature from it.
Feature¶
An input column that a model uses to predict the target, such as the temperature or the hour of the day. See Models.
Fingerprint¶
A checksum of everything that decided a file, such as the code, the reviews of flags or a shape, stored in the file. When the fingerprint no longer matches, the scripts make the file again.
Flag¶
A mark on a period of the electricity demand that looks wrong and needs a person to look at it. A flag never removes values. See Quality flags and reviews.
G–L¶
GDP PPP¶
Gross domestic product at purchasing power parity: the value of what an economy produces, in international dollars that buy the same goods in every country. This makes incomes comparable across countries.
Gross demand¶
All the electricity consumed, whatever generation supplies it, including rooftop solar and other embedded generation. DemandCast models the gross demand. See Electricity demand data.
IAMC scenario¶
A scenario of the projections of annual electricity demand per capita: an SSP with a target of radiative forcing, written like SSP2-45, or its baseline, SSP2-Baseline.
Interval¶
The period that one value of a data source covers, such as 15 minutes or one hour. DemandCast stamps each value at the end of its interval.
Load¶
Another word for electricity demand at a moment, in MW.
Local day, local year¶
A day or a year in the local time of an entity, rather than in UTC. An hour belongs to the local day or year of its start.
LSTM¶
Long short-term memory: a type of neural network for sequences. DemandCast offers it as an optional model. See Models.
M–R¶
MAPE¶
Mean absolute percentage error: the average, over the hours, of the absolute error of each hour as a percentage of the actual demand of that hour. Hours of low demand weigh as much as hours of high demand. See WAPE.
Manifest¶
A JSON file that records where another file comes from. Two kinds exist:
<name>.manifest.json, next to each assembled dataset, trained model and result, with the checksums of the file and of its inputs, the code version and the settings. The scripts check it before they use the file.electricity_demand/raw/<data source>/manifest.json, which lists the downloads (requests) of a data source and their versions.
See Data folder.
Net demand¶
Demand that leaves out the part supplied by embedded generation, as seen from the transmission network. As rooftop solar grows, its midday values dip on sunny days.
Non-standard subdivision¶
A subdivision that is not an ISO 3166-2 region, such as a grid region. DemandCast defines its shape by the standard subdivisions that make it up, in shapes/subdivisions/<ISO3>.yaml.
Reanalysis¶
A reconstruction of past weather, hour by hour on a grid, that combines observations with a weather model. ERA5 is the one DemandCast uses.
Related entities¶
Two entities whose areas overlap enough that the people of the shared area are at least 10% of the people of either one, such as a country and one of its regions. A model is never trained on an entity related to the one it is scored on, since it would have seen the demand of the same people. See Models.
Resolution¶
The time between consecutive values of a data source, such as 15 minutes or one hour. DemandCast turns every resolution into hourly values.
Review¶
Your decision about a flag, written in checks/reviewed_flags.yaml. It gives a verdict that decides what happens to the flagged hours. See Quality flags and reviews.
S–Z¶
Scenario¶
One possible future. DemandCast uses three families: SSP scenarios for population and GDP, IAMC scenarios for the annual electricity demand per capita, and CMIP6 scenarios for the climate.
Solar time¶
Time set by the position of the sun rather than by the clock: noon is when the sun is highest. The midday flags use it, so that time zones and daylight saving do not move the midday hours.
SSP¶
Shared Socioeconomic Pathway: one of five storylines of how the world's population and economy develop, from SSP1 (sustainable growth) to SSP5 (fossil-fuelled growth).
System operator¶
The company that runs a power grid and measures its demand, such as RTE in France. Most demand data comes from them.
Target¶
The value a model learns to predict. In DemandCast, it is the hourly demand relative to the annual demand, not the demand in MW. See Models.
Testing set, validation set, training set¶
The training set is the data a model learns from. The testing set is the data kept aside to measure its error, here the most recent year of each entity. The optional validation set is the year before it, or the most recent year without a testing set, which XGBoost can use to decide when to stop training (early stopping). See Train and validate.
Verdict¶
The outcome of a review: source_error, reading_error, net_demand, definition_change, real_event or false_positive. See Quality flags and reviews.
WAPE¶
Weighted absolute percentage error: the sum of the absolute errors of all hours divided by the sum of the actual demand. Large systems and hours of high demand weigh the most. It is the main error measure of DemandCast. Lower is better.
XGBoost¶
A widely used machine learning algorithm that builds many small decision trees, each correcting the errors of the previous ones. It is the default model of DemandCast. See Models.