Learn R Programming

blocking (version 1.0.1)

control_hnsw: Controls for the HNSW algorithm

Description

Controls for HNSW algorithm used in the package (see RcppHNSW::hnsw_build() and RcppHNSW::hnsw_search() for details).

Usage

control_hnsw(M = 25, ef_c = 200, ef_s = 200, grain_size = 1, byrow = TRUE, ...)

Value

Returns a list with parameters.

Arguments

M

Controls the number of bi-directional links created for each element during index construction.

ef_c

Size of the dynamic list used during construction.

ef_s

Size of the dynamic list used during search.

grain_size

Minimum amount of work to do (rows in the dataset to add) per thread.

byrow

If TRUE (the default), this indicates that the items in the dataset to be indexed are stored in each row. Otherwise, the items are stored in the columns of the dataset.

...

Additional arguments.