src-d / kmcuda

Large scale K-means and K-nn implementation on NVIDIA GPU / CUDA
Other
806 stars 145 forks source link

hi, How to get the distance from each sample to other sample in the cluster #40

Closed luobo11 closed 6 years ago

luobo11 commented 6 years ago

hi, How to get the distance from each sample to other sample in the cluster

vmarkovtsev commented 6 years ago

Do you mean all2all in a cluster? This is impossible in this library.

luobo11 commented 6 years ago

yeah, the distance that each sample to others within a cluster. so , i need to get the average of distances from each sample to each other sample in the cluster as each sample 's score. Is there any other way?

vmarkovtsev commented 6 years ago

E.g. numpy array manipulation using indexing after the assignments are done.