Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
SorbonneUniversity
/
SorboBot
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
1c516fb
SorboBot
/
models
/
distance.py
Léo Bourrel
clean: split distance strategy model
50058a6
over 1 year ago
raw
Copy download link
history
blame
Safe
179 Bytes
import
enum
class
DistanceStrategy
(
str
, enum.Enum):
"""Enumerator of the Distance strategies."""
EUCLIDEAN =
"l2"
COSINE =
"cosine"
MAX_INNER_PRODUCT =
"inner"