Add a script to prerun a model with data from the ADR #484
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR will add 2 scripts
run_and_push_to_server
which will fit a model and calibration from a payload spec and then push the results to a specified server using the prerun feature saving the result as an output zipfit_and_push
which calls the first script which will read from a config json, there are two examples here which willWe want this because we want an easy way as a developer of the web app to be able to get a model fit into the app. This PR will remove the need to manually load data in and then set model options through the UI and fit the model.
Eventually I want to have some precanned data available in the app but I think for now this will be a good start, and will be something we can use later on to run for any country we don't have precanned data for
Expect the way you will run this from hint is