Skip to contents

Stream 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.matrix or prepared reference with a stored descriptor.

k

Number of neighbours per row.

xpFrom

Writable single-column bigmemory::big.matrix receiving source vertex ids.

xpTo

Writable single-column bigmemory::big.matrix receiving target vertex ids.

xpValue

Optional writable single-column bigmemory::big.matrix receiving 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 xpValue stores distances or unit weights.

checkpoint_path

Optional path for a resumable job checkpoint.

Value

An object of class "bigknn_job".