pysparky_vector.metrics.registry
Attributes
| Name | Description |
|---|---|
METRICS | No 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}
}