Skip to content

Commit

Permalink
Test both diseases in end to end test
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhmorris committed Dec 28, 2024
1 parent bcf8efc commit b99c83c
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions pipelines/tests/test_end_to_end.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,26 @@ if [ $? -ne 0 ]; then
else
echo "TEST-MODE: Finished generating test data"
fi
echo "TEST-MODE: Running forecasting pipeline for several locations"
echo "TEST-MODE: Running forecasting pipeline for two diseases in multiple locations"
for state in CA MT US
do
python pipelines/forecast_state.py \
--disease "COVID-19" \
--state $state \
--facility-level-nssp-data-dir "$BASE_DIR/private_data/nssp_etl_gold" \
--state-level-nssp-data-dir "$BASE_DIR/private_data/nssp_state_level_gold" \
--priors-path "$BASE_DIR/test_output/priors.py" \
--param-data-dir "$BASE_DIR/private_data/prod_param_estimates" \
--output-dir "$BASE_DIR/private_data" \
--n-training-days 60 \
--n-chains 2 \
--n-samples 250 \
--n-warmup 250 \
--score \
--eval-data-path "$BASE_DIR/private_data/nssp-archival-vintages"
for disease in COVID-19 Influenza
do
python pipelines/forecast_state.py \
--disease $disease \
--state $state \
--facility-level-nssp-data-dir "$BASE_DIR/private_data/nssp_etl_gold" \
--state-level-nssp-data-dir "$BASE_DIR/private_data/nssp_state_level_gold" \
--priors-path "$BASE_DIR/test_output/priors.py" \
--param-data-dir "$BASE_DIR/private_data/prod_param_estimates" \
--output-dir "$BASE_DIR/private_data" \
--n-training-days 60 \
--n-chains 2 \
--n-samples 250 \
--n-warmup 250 \
--score \
--eval-data-path "$BASE_DIR/private_data/nssp-archival-vintages"
done
done

if [ $? -ne 0 ]; then
Expand Down

0 comments on commit b99c83c

Please sign in to comment.