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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -