Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a script to prerun a model with data from the ADR #484

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

r-ash
Copy link
Collaborator

@r-ash r-ash commented Dec 7, 2023

This PR will add 2 scripts

  1. 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 zip
  2. fit_and_push which calls the first script which will read from a config json, there are two examples here which will
    1. Pull data from the ADR or use local files
    2. Build the payloads from these and the options in the config
    3. Push to the specified server
    4. Save output zip out which can be loaded onto the server

We 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

  • I'll add a new script to hint which can take one of the configs which will
    1. Copy the config into hintr docker container
    2. Run this script
    3. Copy the output out of the docker container

@r-ash r-ash requested review from richfitz and M-Kusumgar December 7, 2023 14:33
Copy link

codecov bot commented Dec 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3ea9e51) 98.47% compared to head (e0a4217) 98.47%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #484      +/-   ##
==========================================
- Coverage   98.47%   98.47%   -0.01%     
==========================================
  Files          29       29              
  Lines        2365     2364       -1     
==========================================
- Hits         2329     2328       -1     
  Misses         36       36              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant