Build the LSH index over data.
L the number of repetitions of the LSH scheme.
Returns a LSH projector of type (queries: Table, k:Any) -> Table
Classify the queries.
Use the knn_model to extract the k closest datapoints.
The queries are then labeled using a majority vote between the labels
of the retrieved datapoints, using the labels provided in data_labels.
Build the LSH index over data using the Euclidean distances.
d is the dimension of the data, L the number of repetition of the LSH scheme,
M and A are specific to LSH with Euclidean distance, M is the number of random projections
done to create each bucket and A is the width of each bucket on each projection.
Build the LSH index over data using the a generic lsh_projector and its associated distance.
L the number of repetitions of the LSH scheme.
Returns a LSH projector of type (queries: Table, k:Any) -> Table
Build the LSH index over data.
L the number of repetitions of the LSH scheme.
Returns a LSH projector of type (queries: Table, k:Any) -> Table
Verifies that L buckets were indeed created
Verifies that L buckets were indeed created
Verifies that close points are mapped together and distant ones - apart.
Verifies that bucketing is properly indexed.