Class BucketedRandomProjectionLSHModel

Object
org.apache.spark.ml.PipelineStage
org.apache.spark.ml.Transformer
org.apache.spark.ml.Model<T>
org.apache.spark.ml.feature.LSHModel<BucketedRandomProjectionLSHModel>
org.apache.spark.ml.feature.BucketedRandomProjectionLSHModel
All Implemented Interfaces:
Serializable, org.apache.spark.internal.Logging, org.apache.spark.ml.feature.BucketedRandomProjectionLSHParams, org.apache.spark.ml.feature.LSHParams, Params, HasInputCol, HasOutputCol, Identifiable, MLWritable

public class BucketedRandomProjectionLSHModel extends org.apache.spark.ml.feature.LSHModel<BucketedRandomProjectionLSHModel> implements org.apache.spark.ml.feature.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: