Skip to content

Commit ace0d6a

Browse files
committed
Merge pull request scikit-learn#1705 from glouppe/tree-fix
[MRG]: FIX: use DOUBLE_t type
2 parents 7c05c24 + ff937b4 commit ace0d6a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

sklearn/tree/_tree.c

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sklearn/tree/_tree.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ cdef class ClassificationCriterion(Criterion):
11981198
cdef int k = 0
11991199
cdef int c = 0
12001200
cdef int j = 0
1201-
cdef DTYPE_t w = 1.0
1201+
cdef DOUBLE_t w = 1.0
12021202

12031203
self.n_samples = n_samples
12041204
self.weighted_n_samples = weighted_n_samples

0 commit comments

Comments
 (0)