Questions tagged [pairwise-distance]

32 questions
-1
votes
2 answers

Pairwise distance of points in one dimension

Is it possible to calculate the pairwise distance of a set of points in one dimension (all points are in a line) faster than O(n^2)?
Mateo
  • 83
  • 5
-1
votes
1 answer

Optimized way to find pairwise cosine distance matrix using pairwise_distances_chunked

I have a numpy array with 42000 (rows) * 110000 (dimensions) ,I am trying to create a pairwise distance matrix(42000*42000) with 32GB ram and 8 cores. I tried pairwise_distances_chunked but it is only giving 3120*42000 distance matrix .Also used…
1 2
3