8000 Merge pull request #3 from jjerphan/pairwise_aggregation_cython-radius · mbatoul/scikit-learn@7ea6daa · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ea6daa

Browse files
authored
Merge pull request scikit-learn#3 from jjerphan/pairwise_aggregation_cython-radius
Add RadiusNeighborhood as a PairwiseDistancesReduction
2 parents 384b9a8 + 7c713a1 commit 7ea6daa

File tree

7 files changed

+533
-155
lines changed

7 files changed

+533
-155
lines changed

sklearn/metrics/_dist_metrics.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ cdef class DistanceMetric:
6262
cdef DTYPE_t dist(self, const DTYPE_t* x1, const DTYPE_t* x2,
6363
ITYPE_t size) nogil except -1
6464

65-
cdef DTYPE_t rdist(self, DTYPE_t* x1, DTYPE_t* x2,
65+
cdef DTYPE_t rdist(self, const DTYPE_t* x1, const DTYPE_t* x2,
6666
ITYPE_t size) nogil except -1
6767

6868
cdef int pdist(self, const DTYPE_t[:, ::1] X, DTYPE_t[:, ::1] D) except -1

0 commit comments

Comments
 (0)
0