Skip to content

Commit

Permalink
added extended dataset and filtering of negative T
Browse files Browse the repository at this point in the history
  • Loading branch information
jguski committed May 13, 2024
1 parent 62edc98 commit 65bfea0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions config/experiment/nuts0_nuts1/crnlearner_npi_schools_DE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ general:
out_dir_base: ./results
substeps:
- fit_causal_model
#- evaluate_causal_model
#- refutation
- shap_analysis
- evaluate_causal_model
- refutation
#- shap_analysis
data:
treatment: npi_schools
treatment_levels: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ general:
out_dir_base: ./results
substeps:
- fit_causal_model
#- evaluate_causal_model
#- refutation
- shap_analysis
- evaluate_causal_model
- refutation
#- shap_analysis
data:
treatment: npi_stay_home
treatment_levels: 2
Expand Down
4 changes: 2 additions & 2 deletions data/data.csv
100644 → 100755
Git LFS file not shown
3 changes: 2 additions & 1 deletion src/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,4 +391,5 @@ def create_windowed_dataframe(

X_df = pd.concat([X_df, X_concat])

return X_df, Y_df, T_df
# drop windows for which treatment is negative (defined as missing)
return X_df.loc[T_df.squeeze()>=0], Y_df.loc[T_df.squeeze()>=0], T_df.loc[T_df.squeeze()>=0]

0 comments on commit 65bfea0

Please sign in to comment.