Valentyn1997 / CausalTransformer

Code for the paper "Causal Transformer for Estimating Counterfactual Outcomes"
MIT License
95 stars 21 forks source link

Error in Config group override #3

Closed kzintas closed 2 years ago

kzintas commented 2 years ago

I am trying to run the example command, but am getting the following error from Hydra:

ValueError: Config group override must be a string or a list. Got int

Can you please help to solve this isse?

Valentyn1997 commented 2 years ago

Hey! If you are running code from the command line, you could try either +backbone/ct_hparams/cancer_sim_domain_conf='0','1','2' or the version with escape backslash +backbone/ct_hparams/cancer_sim_domain_conf=\'0\',\'1\',\'2\'.

kzintas commented 2 years ago

Thank you! I tried single quote around parameters according to the Hydra doc, and it worked.

PYTHONPATH=. CUDA_VISIBLE_DEVICES=0 python3 runnables/train_multi.py -m +dataset=cancer_sim +backbone=ct +'backbone/ct_hparams/cancer_sim_domain_conf="0","1","2"' exp.seed=10,101,1010,10101,101010