File tree 3 files changed +105
-140
lines changed
3 files changed +105
-140
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,13 @@ Changelog
65
65
now conducts validation for `max_features ` and `feature_names_in ` parameters.
66
66
:pr: `23299 ` by :user: `Long Bao <lorentzbao> `.
67
67
68
+ :mod: `sklearn.tree `
69
+ ...................
70
+
71
+ - |Fix | Fixed invalid memory access bug during fit in
72
+ :class: `tree.DecisionTreeRegressor ` and :class: `tree.DecisionTreeClassifier `.
73
+ :pr: `23273 ` by `Thomas Fan `_.
74
+
68
75
Code and Documentation Contributors
69
76
-----------------------------------
70
77
Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ cdef class Splitter:
46
46
cdef object random_state # Random state
47
47
cdef UINT32_t rand_r_state # sklearn_rand_r random number state
48
48
49
- cdef SIZE_t* samples # Sample indices in X, y
49
+ cdef SIZE_t[:: 1 ] samples # Sample indices in X, y
50
50
cdef SIZE_t n_samples # X.shape[0]
51
51
cdef double weighted_n_samples # Weighted number of samples
52
- cdef SIZE_t* features # Feature indices in X
53
- cdef SIZE_t* constant_features # Constant features indices
52
+ cdef SIZE_t[:: 1 ] features # Feature indices in X
53
+ cdef SIZE_t[:: 1 ] constant_features # Constant features indices
54
54
cdef SIZE_t n_features # X.shape[1]
55
- cdef DTYPE_t* feature_values # temp. array holding feature values
55
+ cdef DTYPE_t[:: 1 ] feature_values # temp. array holding feature values
56
56
57
57
cdef SIZE_t start # Start position for the current node
58
58
cdef SIZE_t end # End position for the current node
You can’t perform that action at this time.
0 commit comments