- algorithm
Type of neighbor search: 'naive', 'single_tree',
'dual_tree', 'greedy'. Default value "dual_tree" (character).
- epsilon
If specified, will do approximate nearest neighbor search
with given relative error. Default value "0" (numeric).
- input_model
Pre-trained kNN model (KNNModel).
- k
Number of nearest neighbors to find. Default value "0"
(integer).
- leaf_size
Leaf size for tree building (used for kd-trees, vp
trees, random projection trees, UB trees, R trees, R* trees, X trees,
Hilbert R trees, R+ trees, R++ trees, spill trees, and octrees). Default
value "20" (integer).
- query
Matrix containing query points (optional) (numeric
matrix).
- random_basis
Before tree-building, project the data onto a random
orthogonal basis. Default value "FALSE" (logical).
- reference
Matrix containing the reference dataset (numeric
matrix).
- rho
Balance threshold (only valid for spill trees). Default
value "0.7" (numeric).
- seed
Random seed (if 0, std::time(NULL) is used). Default value
"0" (integer).
- tau
Overlapping size (only valid for spill trees). Default value
"0" (numeric).
- tree_type
Type of tree to use: 'kd', 'vp', 'rp', 'max-rp', 'ub',
'cover', 'r', 'r-star', 'x', 'ball', 'hilbert-r', 'r-plus', 'r-plus-plus',
'spill', 'oct'. Default value "kd" (character).
- true_distances
Matrix of true distances to compute the effective
error (average relative error) (it is printed when -v is specified)
(numeric matrix).
- true_neighbors
Matrix of true neighbors to compute the recall (it
is printed when -v is specified) (integer matrix).
- verbose
Display informational messages and the full list of
parameters and timers at the end of execution. Default value
"getOption("mlpack.verbose", FALSE)" (logical).