S3 wrapper around the $predict() method of an AnnIndex.
Usage
# S3 method for class 'AnnIndex'
predict(object, newdata, k = 15L, ...)Arguments
- object
An AnnIndex.
- newdata
Numeric matrix or data.frame. Queries x features.
- k
Integer. Number of neighbours.
- ...
Passed on to
$predict():return_dist,.verbose.
Value
A list with idx and dist. See AnnIndex.
