Recent Posts

scipy: pdist indexing

1 minute read

scipy.spatial.distance.pdist(X) gives the pair-wise distances of X, dist(X[i],X[i]) not included. The distances are stored in a dense matri...