We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2630821 commit 9445adcCopy full SHA for 9445adc
tests/xgboost/test_xgboost_converters.py
@@ -653,12 +653,12 @@ def test_xgb_cost(self):
653
y = oinf.run(None, {"X": X_test.astype(np.float32)})
654
if cl == XGBRegressor:
655
exp = clr.predict(X_test)
656
- assert_almost_equal(exp, y[0].ravel(), decimal=5)
+ assert_almost_equal(exp, y[0].ravel(), decimal=4)
657
else:
658
if "softmax" not in obj:
659
exp = clr.predict_proba(X_test)
660
got = pandas.DataFrame(y[1]).values
661
- assert_almost_equal(exp, got, decimal=5)
+ assert_almost_equal(exp, got, decimal=4)
662
663
exp = clr.predict(X_test[:10])
664
assert_almost_equal(exp, y[0][:10])
0 commit comments