Skip to contents

Controls for ANN algorithms used in the package.

Usage

controls_ann(
  sparse = FALSE,
  k_search = 30,
  nnd = control_nnd(),
  hnsw = control_hnsw(),
  lsh = control_lsh(),
  kd = control_kd(),
  annoy = control_annoy()
)

Arguments

sparse

whether sparse data should be used as an input for algorithms,

number of neighbours to search,

nnd

parameters for rnnd_build() and rnnd_query() (should be inside control_nnd() function),

hnsw

parameters for hnsw_build() and hnsw_search() (should be inside control_hnsw() function),

lsh

parameters for lsh() function (should be inside control_lsh() function),

kd

kd parameters for knn() function (should be inside control_kd() function),

annoy

parameters for the RcppAnnoy package (should be inside control_annoy() function).

Value

Returns a list with parameters.

Author

Maciej Beręsewicz