Thank you for sharing the code. I am reading through the code to understand how it works.
I am wondering whether there exists a bug in implementing "reweight_sample" option.
It looks like p_t is the proportion of treated instances -- so if it is 0.5, w_t and w_c would yield the same weight for the treated & controlled instances. If this is true, I think
Thank you for sharing the code. I am reading through the code to understand how it works. I am wondering whether there exists a bug in implementing "reweight_sample" option.
It looks like p_t is the proportion of treated instances -- so if it is 0.5, w_t and w_c would yield the same weight for the treated & controlled instances. If this is true, I think
https://github.com/clinicalml/cfrnet/blob/0377b0c8c822845d335540d4be6003024a65d3c8/cfr/cfr_net.py#L139
should be
w_c = (1 - t) / (2 * (1 - p_t))