« first day (2597 days earlier)      last day (625 days later) » 

3:19 PM
@AndrasDeak--СлаваУкраїні Do you maybe know more? stackoverflow.com/q/73305987
op wants to use scipy.spatial.distance
the thing is they basically just want to comptue batched distances, but for some odd reason the distance functions (like euclidean etc) do not support that
(and neither cdist nor pdist do the job)
 
Just compute by hand
np.linalg.norm(this - that, axis=...)
 
euclidean was just one example I think
there are many more fancier metrics
 
Norm has more options too
 
ok but I'm not sure every of these metrics can be defined via a norm, but maybe it's sufficient for what they need
I found it just a little bit puzzling that these functions do not support batched distance computations!
Or alternatively a bdist(u, v, metric) would be nice that just does the broadcast versions
 

« first day (2597 days earlier)      last day (625 days later) »