File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sklearn/ensemble/_hist_gradient_boosting/tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 9
9
from sklearn .ensemble ._hist_gradient_boosting .loss import _LOSSES
10
10
from sklearn .ensemble ._hist_gradient_boosting .common import Y_DTYPE
11
11
from sklearn .ensemble ._hist_gradient_boosting .common import G_H_DTYPE
12
+ from sklearn .utils ._testing import skip_if_32bit
12
13
13
14
14
15
def get_derivatives_helper (loss ):
@@ -58,8 +59,7 @@ def get_hessians(y_true, raw_predictions):
58
59
])
59
60
@pytest .mark .skipif (sp_version == (1 , 2 , 0 ),
60
61
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
63
63
def test_derivatives (loss , x0 , y_true ):
64
64
# Check that gradients are zero when the loss is minimized on 1D array
65
65
# using Halley's method with the first and second order derivatives
You can’t perform that action at this time.
0 commit comments