Repo to automatically run metrics on the nowcasting forecast
time of day
and forecast_horizon
. ((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. PVnet
and National_xg
To run local pytests you need to
src
to python path export PYTHONPATH=$PYTHONPATH:./nowcasting_metrics
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_metrics
The 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!