Parametrized Constructor
API Definition
class KBest(K_features: int, R: int, L: int, A: int, metric: string, init_builder_type: string, numa_enabled: bool, numa_nodes_number: int)
Function
Initialize the build of graph search.
Parameters
Parameter |
Description |
Data Type |
Value Range |
|---|---|---|---|
K_features |
Number of feature dimensions. |
int |
[1, 2999] |
R |
Number of neighboring nodes. |
int |
[11, 499] |
L |
Size of the candidate node list during the graph build. |
int |
[11, 1999] |
A |
Angle threshold during the pruning of graph build. |
int |
[10, 360] |
metric |
Distance measurement indicator. |
Character string |
L2 or IP.
|
init_builder_type |
Type of the index to build. |
Character string |
RNNDescent and NNDescent indicate two different algorithms for building the k-nearest neighbor graph. RNNDescent is often used. |
numa_enabled |
Whether to enable NUMA optimization. |
Boolean |
- |
numa_nodes_number |
Number of used NUMA nodes. |
int |
≥ 1 |