calculateSimilarity

Calculates the cosine similarity between two embedding vectors.

Cosine similarity is computed as:

$$S = \frac{\mathbf{A} \cdot \mathbf{B}}{\|\mathbf{A}\| \|\mathbf{B}\|}$$

Return

cosine similarity in the range [-1.0, 1.0]. A higher value indicates higher similarity.

Parameters

other

the other face embedding to compare against.