Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PositivelyRelated ¶
PositivelyRelated return if metricType are "ip" or "IP"
Types ¶
type MetricType ¶
type MetricType = string
MetricType string.
const ( // L2 represents Euclidean distance L2 MetricType = "L2" // IP represents inner product distance IP MetricType = "IP" // COSINE represents cosine distance COSINE MetricType = "COSINE" // HAMMING represents hamming distance HAMMING MetricType = "HAMMING" // JACCARD represents jaccard distance JACCARD MetricType = "JACCARD" // SUBSTRUCTURE represents substructure distance SUBSTRUCTURE MetricType = "SUBSTRUCTURE" // SUPERSTRUCTURE represents superstructure distance SUPERSTRUCTURE MetricType = "SUPERSTRUCTURE" )
MetricType definitions
Click to show internal directories.
Click to hide internal directories.