Rate This Document
Findability
Accuracy
Completeness
Readability

Parametrized Constructor

API Definition

class KBest(K_features: int, R: int, L: int, A: int, graph_opt_iter:int, metric: string, init_builder_type: string, index_type: string, numa_enabled: bool, numa_nodes_number: int)

Function

Initializes the build of graph search.

Parameters

Parameter

Description

Data Type

Value Range

K_features

Feature dimension.

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

[1, 360]

graph_opt_iter

Number of rounds for graph index self-iteration.

int

[0, 30]

metric

Distance measurement indicator.

Character string

L2 or IP.

  • L2 indicates the Euclidean distance.
  • IP indicates the inner product distance.

init_builder_type

Algorithm for building the k-nearest neighbor graph.

Character string

RNNDescent and NNDescent indicate two different algorithms for building the k-nearest neighbor graph. RNNDescent is often used.

index_type

Neighbor selection strategy.

Character string

HNSW, NSG, TSDG, and SSG indicate the four different neighbor selection strategies.

numa_enabled

Indicates whether to enable NUMA optimization.

Boolean

-

numa_nodes_number

Number of used NUMA nodes.

int

≥ 1