Skip to content

Commit d1cf3b1

Browse files
committed
REV Revert
1 parent 9d20833 commit d1cf3b1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sklearn/ensemble/_hist_gradient_boosting/splitting.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ cdef class Splitter:
134134
const unsigned int [::1] n_bins_non_missing
135135
unsigned char missing_values_bin_idx
136136
const unsigned char [::1] has_missing_values
137-
char [::1] monotonic_cst
137+
const char [::1] monotonic_cst
138138
unsigned char hessians_are_constant
139139
Y_DTYPE_C l2_regularization
140140
Y_DTYPE_C min_hessian_to_split
@@ -150,7 +150,7 @@ cdef class Splitter:
150150
const unsigned int [::1] n_bins_non_missing,
151151
const unsigned char missing_values_bin_idx,
152152
const unsigned char [::1] has_missing_values,
153-
char [::1] monotonic_cst,
153+
const char [::1] monotonic_cst,
154154
Y_DTYPE_C l2_regularization,
155155
Y_DTYPE_C min_hessian_to_split=1e-3,
156156
unsigned int min_samples_leaf=20,
@@ -410,7 +410,7 @@ cdef class Splitter:
410410
split_info_struct split_info
411411
split_info_struct * split_infos
412412
const unsigned char [::1] has_missing_values = self.has_missing_values
413-
char [::1] monotonic_cst = self.monotonic_cst
413+
const char [::1] monotonic_cst = self.monotonic_cst
414414

415415
with nogil:
416416

@@ -820,4 +820,4 @@ cpdef inline Y_DTYPE_C compute_node_value(
820820
elif value > upper_bound:
821821
value = upper_bound
822822

823-
return value
823+
return value

0 commit comments

Comments
 (0)