Neighbours (medpy.neighbours)#

This package contains nearest neighbour methods.

Patch-wise medpy.neighbours.knn#

K-nearest-neighbours based methods. The interfaces are loosely based on the sklear.neighbours methods. The methods can be considered complementary to the ones found there.

mkneighbors_graph(observations, ...[, mode, ...])

Computes the (weighted) graph of mutual k-Neighbors for observations.

pdist(objects, dmeasure[, diagval])

Compute the pair-wise distances between arbitrary objects.