8000 TST Skips derivative check on 32bit platforms (#17073) · scikit-learn/scikit-learn@ad6a9f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad6a9f9

Browse files
authored
TST Skips derivative check on 32bit platforms (#17073)
* TST Checks type for derivative check * TST Skips test for 32bit linux * REV Less diffs
1 parent 1c69a8a commit ad6a9f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/ensemble/_hist_gradient_boosting/tests/test_loss.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from sklearn.ensemble._hist_gradient_boosting.loss import _LOSSES
1010
from sklearn.ensemble._hist_gradient_boosting.common import Y_DTYPE
1111
from sklearn.ensemble._hist_gradient_boosting.common import G_H_DTYPE
12+
from sklearn.utils._testing import skip_if_32bit
1213

1314

1415
def get_derivatives_helper(loss):
@@ -58,8 +59,7 @@ def get_hessians(y_true, raw_predictions):
5859
])
5960
@pytest.mark.skipif(sp_version == (1, 2, 0),
6061
reason='bug in scipy 1.2.0, see scipy issue #9608')
61-
@pytest.mark.skipif(Y_DTYPE != np.float64,
62-
reason='Newton internally uses float64 != Y_DTYPE')
62+
@skip_if_32bit
6363
def test_derivatives(loss, x0, y_true):
6464
# Check that gradients are zero when the loss is minimized on 1D array
6565
# using Halley's method with the first and second order derivatives

0 commit comments

Comments
 (0)
0