Skip to content

Commit

Permalink
V10 Added 7-day IIT model (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimaina authored Sep 8, 2024
1 parent 6a59dbd commit cd5df2c
Show file tree
Hide file tree
Showing 29 changed files with 453,516 additions and 78 deletions.
18 changes: 10 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,9 @@ RUN install2.r --error --skipinstalled \
readr \
RMariaDB \
DBI \
h2o \
&& rm -rf /tmp/downloaded_packages

# The model always needs to run on the exact version of h2o used to train it
RUN Rscript -e "remotes::install_version('h2o', '3.44.0.3')"

# Add the prediction model to the app
COPY IIT-Prediction/model/V9B /app/model
# Add the production extraction query to the app
COPY SQL/iit_prod_data_extract.sql /app/iit_prod_data_extract.sql

# The next scripts are used for cron jobs
# this script triggers the predictions to run by hitting the API endpoint
COPY docker-resources/run_predictions.sh /app/run_predictions.sh
Expand All @@ -54,6 +47,15 @@ COPY docker-resources/crontab /etc/cron.d/iit-crontab
RUN chmod 0644 /etc/cron.d/iit-crontab
RUN crontab -u root /etc/cron.d/iit-crontab

# Add the prediction models to the app
COPY IIT-Prediction/model/V9B /app/model
COPY IIT-Prediction/model/V10 /app/model
# Add the production extraction query to the app
COPY SQL/iit_prod_data_extract.sql /app/iit_prod_data_extract.sql
# Add the procution threshold queries to the app
COPY SQL/iit_prod_threshold_adult.sql /app/iit_prod_threshold_adult.sql
COPY SQL/iit_prod_threshold_adult.sql /app/iit_prod_threshold_pediatric.sql

# now we also need to add the R code used here
# this R code actually runs the stored procedures for run_daily_stored_procedures.sh
# this is done in R so we can re-use the database settings for the API
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit cd5df2c

Please sign in to comment.