Skip to content

pysparky_vector.metrics.registry

Attributes

NameDescription
METRICSNo description.

METRICSattributemodule attribute#

METRICS = {
  'cosine': {'fn': cosine_sim, 'desc_order': True},
  'dot': {'fn': dot_expr, 'desc_order': True},
  'euclidean': {'fn': dist_expr, 'desc_order': False},
  'manhattan': {'fn': manhattan_expr, 'desc_order': False}
}