Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils

Index

Functions

cosineSimilarity

  • cosineSimilarity(a: Tensor<Rank>, b: Tensor<Rank>): Tensor<Rank>
  • The cosine similarity between two vectors

    Parameters

    • a: Tensor<Rank>
    • b: Tensor<Rank>

    Returns Tensor<Rank>

euclideandistance

  • euclideandistance(a: Tensor<Rank>, b: Tensor<Rank>): Tensor<Rank>
  • The euclidean distance between two vectors

    Parameters

    • a: Tensor<Rank>
    • b: Tensor<Rank>

    Returns Tensor<Rank>

Generated using TypeDoc