@@ -134,7 +134,7 @@ cdef class Splitter:
134
134
const unsigned int [::1 ] n_bins_non_missing
135
135
unsigned char missing_values_bin_idx
136
136
const unsigned char [::1 ] has_missing_values
137
- const char [::1 ] monotonic_cst
137
+ const signed char [::1 ] monotonic_cst
138
138
unsigned char hessians_are_constant
139
139
Y_DTYPE_C l2_regularization
140
140
Y_DTYPE_C min_hessian_to_split
@@ -150,7 +150,7 @@ cdef class Splitter:
150
150
const unsigned int [::1] n_bins_non_missing ,
151
151
const unsigned char missing_values_bin_idx ,
152
152
const unsigned char [::1] has_missing_values ,
153
- const char [::1] monotonic_cst ,
153
+ const signed char [::1] monotonic_cst ,
154
154
Y_DTYPE_C l2_regularization ,
155
155
Y_DTYPE_C min_hessian_to_split = 1e-3 ,
156
156
unsigned int min_samples_leaf = 20 ,
@@ -410,7 +410,7 @@ cdef class Splitter:
410
410
split_info_struct split_info
411
411
split_info_struct * split_infos
412
412
const unsigned char [::1 ] has_missing_values = self .has_missing_values
413
- const char [::1 ] monotonic_cst = self .monotonic_cst
413
+ const signed char [::1 ] monotonic_cst = self .monotonic_cst
414
414
415
415
with nogil:
416
416
@@ -496,7 +496,7 @@ cdef class Splitter:
496
496
Y_DTYPE_C sum_gradients,
497
497
Y_DTYPE_C sum_hessians,
498
498
Y_DTYPE_C value,
499
- char monotonic_cst,
499
+ signed char monotonic_cst,
500
500
Y_DTYPE_C lower_bound,
501
501
Y_DTYPE_C upper_bound,
502
502
split_info_struct * split_info) nogil: # OUT
@@ -610,7 +610,7 @@ cdef class Splitter:
610
610
Y_DTYPE_C sum_gradients,
611
611
Y_DTYPE_C sum_hessians,
612
612
Y_DTYPE_C value,
613
- char monotonic_cst,
613
+ signed char monotonic_cst,
614
614
Y_DTYPE_C lower_bound,
615
615
Y_DTYPE_C upper_bound,
616
616
split_info_struct * split_info) nogil: # OUT
@@ -723,7 +723,7 @@ cdef inline Y_DTYPE_C _split_gain(
723
723
Y_DTYPE_C sum_gradient_right,
724
724
Y_DTYPE_C sum_hessian_right,
725
725
Y_DTYPE_C loss_current_node,
726
- char monotonic_cst,
726
+ signed char monotonic_cst,
727
727
Y_DTYPE_C lower_bound,
728
728
Y_DTYPE_C upper_bound,
729
729
Y_DTYPE_C l2_regularization) nogil:
@@ -820,4 +820,4 @@ cpdef inline Y_DTYPE_C compute_node_value(
820
820
elif value > upper_bound:
821
821
value = upper_bound
822
822
823
- return value
823
+ return value
0 commit comments