Repo to automatically run metrics on the nowcasting forecast
- The MAE is calculated for each GSP on the latest forecast
- We calculate MAE for for all the GSPs combined on the latest forecast
- We also calculate MAE for different forecast horizon, from 0 to 8 hours, for the national forecast.
- The MAE for PVLive initial and update estimate is also calculated for all GSPs
- The RMSE is calculated for each GSP on the latest forecast
- We calculate RMSE for for all the GSPs combined on the latest forecast
- We also calculate RMSE for different forecast horizon, from 0 to 8 hours, for the national forecast.
- The RMSE for PVLive initial and update estimate is also calculated for all GSPs
- The ME is calculated for National only from the last week. It is grouped by time of dayandforecast_horizon.
- The MAE of the ramp rate is calculated for each model for the national forecast only.
We define ramp rate as
((pred_{t+1 hour} - pred_{t}) - (true_{t+1 hour} - true_{t}))for each individual forecast run. We calculate the 0, 1 and 2 hour ramp rate. The 0 hour ramp rate looks at values at 0 and 1 hour from each forecast.
- We look at the average pinball loss and the average exceedance for plevels 10 and 90.
- This for PVnetandNational_xg
- We look at different forecast horizons for this metric
To run local pytests you need to
- add srcto python pathexport PYTHONPATH=$PYTHONPATH:./nowcasting_metrics
- run pytests: pytest
TO run tests use the following command
docker stop $(docker ps -a -q)
docker-compose -f test-docker-compose.yml build
docker-compose -f test-docker-compose.yml run nowcasting_metricsThe environmental variables are
DB_URL: The database url you want to save the results to
N_GSPS: The number of gsps you want to pull
DATETIME_NOW: The datetime of when this app is ran. Default is None, and Now() is selected.
This is useful as the app calculates the daily metrics from yesterday
USE_PVNET_GSP_SUM: Option to use pvnet_gsp_sum or not. Default is false
These options can also be enter like this:
First add 'nowcasting_metrics' to your python path:
export PYTHONPATH=$PYTHONPATH:./nowcasting_metrics
Then run the app.
python nowcasting_metrics/app.py --n-gsps=10
You will need to set 'DB_URL'
Thanks goes to these wonderful people (emoji key):
| Abhijeet 💻 | Peter Dudfield 💻 | Ansh Roshan 💻 | 
This project follows the all-contributors specification. Contributions of any kind welcome!