Skip to content

Commit

Permalink
Fix in-sample evaluate.
Browse files Browse the repository at this point in the history
  • Loading branch information
kklein committed Aug 15, 2024
1 parent c0bdcbd commit 0785dcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metalearners/xlearner.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ def evaluate(
tv_imputed_te_control, tv_imputed_te_treatment = self._pseudo_outcome(
y, w, treatment_variant, conditional_average_outcome_estimates
)
imputed_te_control.append(tv_imputed_te_control)
imputed_te_treatment.append(tv_imputed_te_treatment)
imputed_te_control.append(tv_imputed_te_control[w == 0])
imputed_te_treatment.append(tv_imputed_te_treatment[w == treatment_variant])

te_treatment_evaluation = _evaluate_model_kind(
self._treatment_models[TREATMENT_EFFECT_MODEL],
Expand Down

0 comments on commit 0785dcd

Please sign in to comment.