Struct faiss::NNDescent
-
struct NNDescent
-
Public Functions
-
explicit NNDescent(const int d, const int K)
-
~NNDescent()
-
void build(DistanceComputer &qdis, const int n, bool verbose)
-
void search(DistanceComputer &qdis, const int topk, idx_t *indices, float *dists, VisitedTable &vt) const
-
void reset()
-
void init_graph(DistanceComputer &qdis)
Initialize the KNN graph randomly.
-
void nndescent(DistanceComputer &qdis, bool verbose)
Perform NNDescent algorithm.
-
void join(DistanceComputer &qdis)
Perform local join on each node.
-
void update()
Sample new neighbors for each node to peform local join later.
-
void generate_eval_set(DistanceComputer &qdis, std::vector<int> &c, std::vector<std::vector<int>> &v, int N)
Sample a small number of points to evaluate the quality of KNNG built.
-
explicit NNDescent(const int d, const int K)