clinicalml / cfrnet

Counterfactual Regression
MIT License
295 stars 82 forks source link

usage of cfr_net_train.py #1

Closed fxiao7 closed 1 year ago

fxiao7 commented 7 years ago

Hi, I'd like to use cfrnet code to run counterfactual analysis. Shall we use cfr_net_train.py to train a model? If so, then what's the usage to call this script? I tried the default setting, but it failed with errors to find files. Thanks for your answer.

oddrose commented 7 years ago

Hi. I think the easiest way to run the code is to run the example example_ihdp.sh and modify it for your purposes. This is described in the readme file. Let me know if you run into trouble.

fxiao7 commented 7 years ago

Thanks a lot! Got it run now.

PS: some methods/modules need to be fixed for it to run in Windows since tensorflow requires python 3.5.X while there are some methods/modules only supported in python 2