openclimatefix / PVNet

PVnet main repo
MIT License
17 stars 4 forks source link

Add first draft backtest script #175

Closed dfulu closed 4 months ago

dfulu commented 5 months ago

Description

Add first draft of a backtest script. This is for running PVNet and the summation model for the UK GSP and national level predictions. Also includes some minor tidying.

How Has This Been Tested?

This has been tested locally. I ran the script with the user variables set to the values they are set to in the script. This was two init-times and using the PVNet model and summation model which are currently on the dev branch. After running the backtest for these two init-times I checked them against the PVLive values and they seemed reasonable

To test with pytest would require a huge amount of build up and teardown to get it to work

Checklist:

peterdudfield commented 5 months ago

Yea, it would be trickly to test with pytest, as you need a fair amount of fake data e.t.c. Its probably something to do in the future, but this is a great first step

peterdudfield commented 4 months ago

This ready to go @Sukh-P ?