From 5d51dc021ff98e51bbab05c13d532ecd61122685 Mon Sep 17 00:00:00 2001 From: Jan-Benedikt Jagusch Date: Tue, 3 Aug 2021 18:05:13 +0300 Subject: [PATCH] set fraction of rows that need to be almost equal to 0.9999 --- tests/lightgbm/test_objective_functions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/lightgbm/test_objective_functions.py b/tests/lightgbm/test_objective_functions.py index ec2ff98b..f0443f07 100644 --- a/tests/lightgbm/test_objective_functions.py +++ b/tests/lightgbm/test_objective_functions.py @@ -14,6 +14,7 @@ _N_ROWS=10_000 _N_COLS=10 _N_DECIMALS=5 +_FRAC = 0.9999 _X = pd.DataFrame(np.random.random(size=(_N_ROWS, _N_COLS))) _Y = pd.Series(np.random.random(size=_N_ROWS)) @@ -83,4 +84,5 @@ def test_objective(self): y_pred, y_pred_onnx, decimal=_N_DECIMALS, + frac=_FRAC, )