Skip to content

Commit

Permalink
"uber#596: Bug fix - Add prediction step to the new case."
Browse files Browse the repository at this point in the history
  • Loading branch information
AlxClt committed Jan 17, 2023
1 parent bca2b0f commit f4c59be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions causalml/inference/meta/xlearner.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ def estimate_ate(
)
else:
p = self._format_p(p, self.t_groups)
te, dhat_cs, dhat_ts = self.predict(
X, treatment, y, p=p, return_components=True
)
else:
te, dhat_cs, dhat_ts = self.fit_predict(
X, treatment, y, p, return_components=True
Expand Down

0 comments on commit f4c59be

Please sign in to comment.