Functions
cosineSimilarity
- cosineSimilarity(a: Tensor<Rank>, b: Tensor<Rank>): Tensor<Rank>
Parameters
a: Tensor<Rank>
b: Tensor<Rank>
Returns Tensor<Rank>
euclideandistance
- euclideandistance(a: Tensor<Rank>, b: Tensor<Rank>): Tensor<Rank>
Parameters
a: Tensor<Rank>
b: Tensor<Rank>
Returns Tensor<Rank>
The cosine similarity between two vectors