-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
38 lines (26 loc) · 1.33 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
DATA_PATH = data
TEXAS_PATH = ${DATA_PATH}/texas
${TEXAS_PATH}/PUDF_base1_%q2013_tab.zip:
@echo "By downloading the dataset you agree with its usage conditions: https://www.dshs.texas.gov/THCIC/Hospitals/Download.shtm"
curl -G "https://www.dshs.texas.gov/thcic/hospitals/Data/PUDF_base1_$*q2013_tab/" > $@
${TEXAS_PATH}/PUDF_base1_%q2013_tab.txt: ${TEXAS_PATH}/PUDF_base1_%q2013_tab.zip
@unzip $< -d ${TEXAS_PATH}
texas: ${TEXAS_PATH}/PUDF_base1_1q2013_tab.txt \
${TEXAS_PATH}/PUDF_base1_2q2013_tab.txt \
${TEXAS_PATH}/PUDF_base1_3q2013_tab.txt \
${TEXAS_PATH}/PUDF_base1_4q2013_tab.txt
data: texas
clean:
rm -rf ${TEXAS_PATH}/*.zip
sync:
poetry run jupytext --sync simulations.py adult.py texas.py reproducing_chang.py
test_adult:
NUM_SHUFFLES=2 DATA_FILE_FORMAT="results/test_adult.csv" poetry run python adult.py >/dev/null
test_texas:
NUM_SHUFFLES=2 DATA_FILE_FORMAT="results/test_texas.csv" poetry run python texas.py >/dev/null
test_simulations:
NUM_SHADOWS=1 NUM_EVAL_MODELS=2 DATA_FILE_FORMAT="results/test_simulations_{}.csv" poetry run python simulations.py >/dev/null
test_reproducing_chang:
NUM_SHUFFLES=2 poetry run python reproducing_chang.py >/dev/null
tests: test_adult test_texas test_simulations test_reproducing_chang
.PHONY: data clean sync tests test_adult test_texas test_simulations test_reproducing_chang