BucketedRandomProjectionLSHModel (Spark 3.5.5 JavaDoc) (original) (raw)


public class BucketedRandomProjectionLSHModel
extends Model
implements BucketedRandomProjectionLSHParams
Model produced by BucketedRandomProjectionLSH, where multiple random vectors are stored. The vectors are normalized to be unit vectors and each vector is used in a hash function:h_i(x) = floor(r_i.dot(x) / bucketLength) where r_i is the i-th random unit vector. The number of buckets will be (max L2 norm of input vectors) / bucketLength.
param: randMatrix A matrix with each row representing a hash function.
See Also:
Serialized Form