mathiver/scikit-learn — comment on commit 80ef67bef3072c3d0500d071745528261d45f4cd
File:  line 0
By jakevdp:

A few other things: the `pairwise_distances` will need to be imported.

Also note that `euclidean_distances` was originally called with `squared=True`. This means it returns the square of the distances rather than the distances themselves. Later in the code, if the distances need to be returned, then the square root is applied. You'll need to assure that the correct numbers are returned in both cases