Build an exact shared-nearest-neighbour graph from a bigmemory::big.matrix
Source: R/knn_interface.R
snn_graph_bigmatrix.RdBuild an exact shared-nearest-neighbour graph from a bigmemory::big.matrix
Arguments
- x
A
bigmemory::big.matrix, an external pointer referencing abig.matrix, or a prepared reference returned byknn_prepare_bigmatrix().- k
Number of neighbours per row in the underlying exact kNN search.
- metric
Distance metric. Supported values are
"euclidean","sqeuclidean", and"cosine".- block_size
Number of rows to process per query and reference block.
- plan
Optional execution plan returned by
knn_plan_bigmatrix().- weight
Shared-nearest-neighbour weight definition. One of
"count"or"jaccard".- format
Output format. One of
"edge_list","triplet", or"dgCMatrix".