Skip to content

Commit

Permalink
relax tolerance from 1e-4 to 1e-3 for comparing intercept_ when stand…
Browse files Browse the repository at this point in the history
…ardization is true in test_compat
  • Loading branch information
lijinf2 committed Dec 10, 2024
1 parent f812fd4 commit 19b2970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tests/test_logistic_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def test_compat(
else [-2.42377087, 2.42377087]
)
assert array_equal(blor_model.coefficients.toArray(), coef_gnd, tolerance)
assert blor_model.intercept == pytest.approx(0, abs=1e-4)
assert blor_model.intercept == pytest.approx(0, abs=tolerance)

assert isinstance(blor_model.coefficientMatrix, DenseMatrix)
assert array_equal(
Expand Down

0 comments on commit 19b2970

Please sign in to comment.