Stream a directed exact kNN graph into destination big.matrix objects
Source: R/v3_interface.R
knn_graph_stream_bigmatrix.RdStream a directed exact kNN graph into destination big.matrix objects
Usage
knn_graph_stream_bigmatrix(
x,
k,
xpFrom,
xpTo,
xpValue = NULL,
metric = "euclidean",
plan = NULL,
block_size = knn_default_block_size(),
include_distance = TRUE,
checkpoint_path = NULL
)Arguments
- x
A
bigmemory::big.matrixor prepared reference with a stored descriptor.- k
Number of neighbours per row.
- xpFrom
Writable single-column
bigmemory::big.matrixreceiving source vertex ids.- xpTo
Writable single-column
bigmemory::big.matrixreceiving target vertex ids.- xpValue
Optional writable single-column
bigmemory::big.matrixreceiving distances or unit weights.- metric
Distance metric. Supported values are
"euclidean","sqeuclidean", and"cosine".- plan
Optional execution plan returned by
knn_plan_bigmatrix().- block_size
Number of rows to process per query and reference block.
- include_distance
Logical flag controlling whether
xpValuestores distances or unit weights.- checkpoint_path
Optional path for a resumable job checkpoint.