Skip to content

Commit

Permalink
set fraction of rows that need to be almost equal to 0.9999
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Benedikt Jagusch <jan.jagusch@gmail.com>
  • Loading branch information
janjagusch committed Aug 3, 2021
1 parent 041beee commit 51988cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/lightgbm/test_objective_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -83,4 +84,5 @@ def test_objective(self):
y_pred,
y_pred_onnx,
decimal=_N_DECIMALS,
frac=_FRAC,
)

0 comments on commit 51988cb

Please sign in to comment.