Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/run-synth-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ jobs:
run: docker build -f dockerfiles/quipp-dev.Dockerfile -t turinginst/quipp-env:latest .
-
name: Run pipeline
run: docker run turinginst/quipp-env:latest make
env:
KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }}
KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }}
run: docker run -e KAGGLE_USERNAME=$KAGGLE_USERNAME -e KAGGLE_KEY=$KAGGLE_KEY turinginst/quipp-env:latest make
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ ADD_PROVENANCE = $(PROVENANCE_DEF) && provenance
## set data file paths
AE_DEIDENTIFIED_DATA = generator-outputs/odi-nhs-ae/hospital_ae_data_deidentify.csv generator-outputs/odi-nhs-ae/hospital_ae_data_deidentify.json
LONDON_POSTCODES = generators/odi-nhs-ae/data/London\ postcodes.csv
HH_DATA = generators/household_poverty/data\ train.csv
HP_DATA_CLEAN = generator-outputs/household_poverty/train_cleaned.csv generator-outputs/household_poverty/train_cleaned.json
generated-data: $(AE_DEIDENTIFIED_DATA) $(HP_DATA_CLEAN)

Expand All @@ -62,6 +63,13 @@ $(LONDON_POSTCODES):
curl -o "./data/London postcodes.csv" \
https://www.doogal.co.uk/UKPostcodesCSV.ashx?region=E12000007

# download the Household poverty dataset from Kaggle using API
$(HH_DATA):
cd generators/household_poverty/data/ && \
kaggle competitions download -c costa-rican-household-poverty-prediction && \
unzip costa-rican-household-poverty-prediction.zip -d unzipped && \
cp unzipped/train.csv .

# make the "A&E deidentified" generated dataset
# this is currently the only generated dataset, so it is handled with
# its own rule
Expand All @@ -70,12 +78,10 @@ $(AE_DEIDENTIFIED_DATA) &: $(LONDON_POSTCODES)
mkdir -p generator-outputs/household_poverty/ && \
cd generator-outputs/odi-nhs-ae/ && \
$(PYTHON) $(QUIPP_ROOT)/generators/odi-nhs-ae/generate.py && \
$(PYTHON) $(QUIPP_ROOT)/generators/odi-nhs-ae/deidentify.py && \
cd ../household_poverty/ && \
$(PYTHON) $(QUIPP_ROOT)/generators/household_poverty/clean.py
$(PYTHON) $(QUIPP_ROOT)/generators/odi-nhs-ae/deidentify.py

# pre-process the Household Poverty dataset
$(HP_DATA_CLEAN):
$(HP_DATA_CLEAN): $(HH_DATA)
mkdir -p generator-outputs/household_poverty/ && \
cd generator-outputs/household_poverty/ && \
$(PYTHON) $(QUIPP_ROOT)/generators/household_poverty/clean.py
Expand Down
1 change: 1 addition & 0 deletions env-configuration/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ shap
ipython
numpy>=1.20
pulp
kaggle