control_nnd | R Documentation |
Controls for NND algorithm used in the package (see rnnd_build and rnnd_query for details).
control_nnd(
k_build = 30,
use_alt_metric = FALSE,
init = "tree",
n_trees = NULL,
leaf_size = NULL,
max_tree_depth = 200,
margin = "auto",
n_iters = NULL,
delta = 0.001,
max_candidates = NULL,
low_memory = TRUE,
n_search_trees = 1,
pruning_degree_multiplier = 1.5,
diversify_prob = 1,
weight_by_degree = FALSE,
prune_reverse = FALSE,
progress = "bar",
obs = "R",
max_search_fraction = 1,
epsilon = 0.1,
...
)
k_build |
Number of nearest neighbors to build the index for. |
use_alt_metric |
If |
init |
Name of the initialization strategy or initial data neighbor graph to optimize. |
n_trees |
The number of trees to use in the RP forest.
Only used if |
leaf_size |
The maximum number of items that can appear in a leaf.
Only used if |
max_tree_depth |
The maximum depth of the tree to build (default = 200).
Only used if |
margin |
A character string specifying the method used to assign points to one side of the hyperplane or the other. |
n_iters |
Number of iterations of nearest neighbor descent to carry out. |
delta |
The minimum relative change in the neighbor graph allowed before early stopping. Should be a value between 0 and 1. The smaller the value, the smaller the amount of progress between iterations is allowed. |
max_candidates |
Maximum number of candidate neighbors to try for each item in each iteration. |
low_memory |
If |
n_search_trees |
The number of trees to keep in the search forest as part of index preparation. The default is 1. |
pruning_degree_multiplier |
How strongly to truncate the final neighbor list for each item. |
diversify_prob |
The degree of diversification of the search graph by removing unnecessary edges through occlusion pruning. |
weight_by_degree |
If |
prune_reverse |
If |
progress |
Determines the type of progress information logged during the nearest neighbor descent stage. |
obs |
set to |
max_search_fraction |
Maximum fraction of the reference data to search. |
epsilon |
Controls trade-off between accuracy and search cost. |
... |
Additional arguments. |
Returns a list with parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.