Tag Info

New answers tagged

0

Given your initial thoughts I'd take a look at scipy.cluster.hierarchy to start with (or the equivalent in scikit-learn) to build the clusters based on distance. For instance, given a numpy.array of coordinates - coords you could build a cluster based on distance like so: import numpy as np import scipy.cluster.hierarchy import collections labels = ...



Top 50 recent answers are included