Skip to content

Commit

Permalink
Fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kbattocchi committed Jan 6, 2020
1 parent a7bcdf6 commit 2a4d6db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion econml/drlearner.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ def score(self, Y, T, X=None, W=None, *, nuisances, sample_weight=None, sample_v
return np.mean(np.average((Y_pred[..., 1:] - Y_pred[..., [0]] - self.model_cate.predict(X))**2,
weights=sample_weight, axis=0))
else:
return np.mean([np.average((Y_pred[..., t] - Y_pred[..., 0] - self.models_cate[t - 1].predict(X))**2,
return np.mean([np.average((Y_pred[..., t] - Y_pred[..., 0] -
self.models_cate[t - 1].predict(X))**2,
weights=sample_weight, axis=0)
for t in np.arange(1, Y_pred.shape[-1])])

Expand Down

0 comments on commit 2a4d6db

Please sign in to comment.