scikit learn - SKLearn Pairwise Distances of a Vector Array -


i have matrix x of shape "x[n_samples, n_features]" .

i want calculate pairwise distances between each samples. possible result result[n_samples,n_samples] ; result[0][1] means distance between 0th vector , 1st vector.

how can achieve using "sklearn.metrics.pairwise.pairwise_distances" function?

as per documentation sklearn! when x vector has above shape, additional array "y" expected. mean?

the documentations explicitly " , optional y". if want compute distances between 2 arrays, y if second array. if don't, don't pass y.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -