Skip to content

Commit

Permalink
Fix atol
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescMartiEscofetQC committed Jul 3, 2024
1 parent 5cdd015 commit aa3fe4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_rlearner.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ def test_rlearner_onnx(treatment_model_factory, onnx_converter, is_classificatio
["tau"],
{"input": onnx_X},
)
np.testing.assert_allclose(ml.predict(X, True, "overall"), pred_onnx[0], atol=1e-5)
np.testing.assert_allclose(ml.predict(X, True, "overall"), pred_onnx[0], atol=5e-4)
2 changes: 1 addition & 1 deletion tests/test_tlearner.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,4 @@ def test_tlearner_onnx(nuisance_model_factory, onnx_converter, is_classification
["tau"],
{"input": onnx_X},
)
np.testing.assert_allclose(ml.predict(X, True, "overall"), pred_onnx[0], atol=1e-4)
np.testing.assert_allclose(ml.predict(X, True, "overall"), pred_onnx[0], atol=5e-4)
2 changes: 1 addition & 1 deletion tests/test_xlearner.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ def test_xlearner_onnx(
["tau", "Div_1_C"],
{"input": X.astype(np.float32)},
)
np.testing.assert_allclose(ml.predict(X, True, "overall"), pred_onnx[0], atol=1e-5)
np.testing.assert_allclose(ml.predict(X, True, "overall"), pred_onnx[0], atol=5e-4)

0 comments on commit aa3fe4d

Please sign in to comment.