Skip to content

Commit

Permalink
Fix XLearner float value
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescMartiEscofetQC committed Jul 25, 2024
1 parent beba0a2 commit 8f1e9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metalearners/xlearner.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def build_onnx(self, models: Mapping[str, Sequence], output_name: str = "tau"):
tau_hat_tv = op.add(
op.mul(scaled_propensity, tau_hat_control[tv]),
op.mul(
op.sub(op.const(1), scaled_propensity),
op.sub(op.constant(value_float=1), scaled_propensity),
tau_hat_effect[tv],
),
)
Expand Down

0 comments on commit 8f1e9e0

Please sign in to comment.