knncolle_hnsw
knncolle bindings for HNSW
|
Options for HnswBuilder
and HnswPrebuilt
.
More...
#include <knncolle_hnsw.hpp>
Public Attributes | |
int | num_links = 16 |
int | ef_construction = 200 |
int | ef_search = 10 |
DistanceOptions< Dim_, InternalData_ > | distance_options |
Options for HnswBuilder
and HnswPrebuilt
.
This can also be created via using the HnswBuilder::Options
definition, which ensures consistency of template parameters with HnswBuilder
.
Dim_ | Integer type for the number of dimensions. For the HnswBuilder constructor, this should be equal to Matrix_::dimension_type . |
InternalData_ | Floating point type for the HNSW index. |
DistanceOptions<Dim_, InternalData_> knncolle_hnsw::HnswOptions< Dim_, InternalData_ >::distance_options |
Choice of distance metric to be used during HNSW index construction and search.
int knncolle_hnsw::HnswOptions< Dim_, InternalData_ >::ef_construction = 200 |
Size of the dynamic list of nearest neighbors during index construction. This controls the trade-off between indexing time and accuracy and is equivalent to the ef_construct
parameter in the underlying hnswlib library, see here for details.
int knncolle_hnsw::HnswOptions< Dim_, InternalData_ >::ef_search = 10 |
Size of the dynamic list of nearest neighbors during searching. This controls the trade-off between search speed and accuracy and is equivalent to the ef
parameter in the underlying hnswlib library, see here for details.
int knncolle_hnsw::HnswOptions< Dim_, InternalData_ >::num_links = 16 |
Number of bidirectional links for each node. This is equivalent to the M
parameter in the underlying hnswlib library, see here for details.