builder
API Definition
def builder(db: numpy.ndarray, num_neighbors: int, distance_measure: string) -> scann.scann_ops.py.scann_builder.ScannBuilder
Function
Construction initialization (consistent with the open source algorithm).
Parameters
Parameter |
Description |
Data Type |
Value Range |
|---|---|---|---|
db |
Base library vector. |
numpy.ndarray |
The value cannot be null. |
num_neighbors |
Number of returned results (Top K). |
int |
≥ 1 |
distance_measure |
Distance measurement indicator. |
Character string |
dot_product or squared_l2. |
Return Value
Data Type |
Description |
|---|---|
scann.scann_ops.py.scann_builder.ScannBuilder |
ScannBuilder is used to receive build parameters. |
Parent topic: Python APIs