Skip to content

Commit

Permalink
Update metalearners/xlearner.py
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Klein <[email protected]>
  • Loading branch information
FrancescMartiEscofetQC and kklein authored Jun 24, 2024
1 parent 4a36e25 commit 5f0987f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions metalearners/xlearner.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,6 @@ def evaluate(
) -> dict[str, float]:
safe_scoring = self._scoring(scoring)

masks = []
for tv in range(self.n_variants):
masks.append(w == tv)

variant_outcome_evaluation = _evaluate_model_kind(
cfes=self._nuisance_models[VARIANT_OUTCOME_MODEL],
Xs=[X[w == tv] for tv in range(self.n_variants)],
Expand Down

0 comments on commit 5f0987f

Please sign in to comment.