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
  • Loading branch information
janjagusch committed Aug 3, 2021
1 parent 041beee commit 5d51dc0
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 5d51dc0

Please sign in to comment.