File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ cdef class Splitter:
117
117
118
118
cdef int init(self ,
119
119
object X,
120
- DOUBLE_t[:, ::1 ] y,
120
+ const DOUBLE_t[:, ::1 ] y,
121
121
DOUBLE_t* sample_weight,
122
122
np.ndarray X_idx_sorted = None ) except - 1 :
123
123
""" Initialize the splitter.
@@ -237,7 +237,7 @@ cdef class Splitter:
237
237
238
238
239
239
cdef class BaseDenseSplitter(Splitter):
240
- cdef DTYPE_t[:, :] X
240
+ cdef const DTYPE_t[:, :] X
241
241
242
242
cdef np.ndarray X_idx_sorted
243
243
cdef INT32_t* X_idx_sorted_ptr
@@ -261,7 +261,7 @@ cdef class BaseDenseSplitter(Splitter):
261
261
262
262
cdef int init(self ,
263
263
object X,
264
- DOUBLE_t[:, ::1 ] y,
264
+ const DOUBLE_t[:, ::1 ] y,
265
265
DOUBLE_t* sample_weight,
266
266
np.ndarray X_idx_sorted = None ) except - 1 :
267
267
""" Initialize the splitter
@@ -877,7 +877,7 @@ cdef class BaseSparseSplitter(Splitter):
877
877
878
878
cdef int init(self ,
879
879
object X,
880
- DOUBLE_t[:, ::1 ] y,
880
+ const DOUBLE_t[:, ::1 ] y,
881
881
DOUBLE_t* sample_weight,
882
882
np.ndarray X_idx_sorted = None ) except - 1 :
883
883
""" Initialize the splitter
You can’t perform that action at this time.
0 commit comments