Skip to content

Commit

Permalink
atol
Browse files Browse the repository at this point in the history
Signed-off-by: xadupre <[email protected]>
  • Loading branch information
xadupre committed Dec 23, 2024
1 parent 2630821 commit 9445adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/xgboost/test_xgboost_converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,12 +653,12 @@ def test_xgb_cost(self):
y = oinf.run(None, {"X": X_test.astype(np.float32)})
if cl == XGBRegressor:
exp = clr.predict(X_test)
assert_almost_equal(exp, y[0].ravel(), decimal=5)
assert_almost_equal(exp, y[0].ravel(), decimal=4)
else:
if "softmax" not in obj:
exp = clr.predict_proba(X_test)
got = pandas.DataFrame(y[1]).values
assert_almost_equal(exp, got, decimal=5)
assert_almost_equal(exp, got, decimal=4)

exp = clr.predict(X_test[:10])
assert_almost_equal(exp, y[0][:10])
Expand Down

0 comments on commit 9445adc

Please sign in to comment.