Skip to contents

Calculate similarities from keys to keys

Usage

calc_simil(
  conn,
  keys,
  q,
  normalized = TRUE,
  method = c("cosine", "correlation", "jaccard", "ejaccard", "dice", "edice", "hamann",
    "simple matching", "faith"),
  ...
)

Arguments

conn

a Magnitude connection.

keys

character vector.

q

character vector.

normalized

logical; whether or not vector embeddings should be normalized?

method

string; method to compute similarity.

...

other arguments are passed to proxyC::simil.

Value

a sparse Matrix of 'Matrix' package.