Skip to content

Commit

Permalink
Merge branch 'master' of github.com:DoubleML/doubleml-for-py into 0.3.X
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteKurz committed Jun 4, 2021
2 parents 7402327 + 1e792bc commit 1e44ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doubleml/double_ml_irm.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _score_elements(self, y, d, g_hat0, g_hat1, m_hat, smpls):
# fraction of treated for ATTE
p_hat = None
if self.score == 'ATTE':
p_hat = np.zeros_like(d, dtype='float64')
p_hat = np.full_like(d, np.nan, dtype='float64')
for _, test_index in smpls:
p_hat[test_index] = np.mean(d[test_index])

Expand Down

0 comments on commit 1e44ef3

Please sign in to comment.