jina.executors.evaluators.embedding.euclidean

class jina.executors.evaluators.embedding.euclidean.EuclideanEvaluator(*args, **kwargs)[source]

Bases: jina.executors.evaluators.embedding.BaseEmbeddingEvaluator

A EuclideanEvaluator evaluates the distance between actual and desired embeddings computing the euclidean distance between them

property metric

Get the name of the evaluation metric

evaluate(actual, desired, *args, **kwargs)[source]

” :type actual: array :param actual: the embedding of the document (resulting from an Encoder) :type desired: array :param desired: the expected embedding of the document :return the evaluation metric value for the request document

Return type

float