quaterion.distances package¶
Submodules¶
Module contents¶
- class Distance(value)[source]¶
Bases:
str
,Enum
An enumerator to pass distance metric names across the package.
- static get_by_name(name: str) BaseDistance [source]¶
A simple utility method to get the distance class by name.
You can pass a value from
Distance
enum or its string representation as an argument.
- COSINE = 'cosine'¶
- DOT_PRODUCT = 'dot_product'¶
- EUCLIDEAN = 'euclidean'¶
- MANHATTAN = 'manhattan'¶