Class BucketedRandomProjectionLSH

Object
org.apache.spark.ml.PipelineStage
org.apache.spark.ml.Estimator<T>
org.apache.spark.ml.feature.LSH<BucketedRandomProjectionLSHModel>
org.apache.spark.ml.feature.BucketedRandomProjectionLSH
All Implemented Interfaces:
Serializable, org.apache.spark.internal.Logging, org.apache.spark.ml.feature.BucketedRandomProjectionLSHParams, org.apache.spark.ml.feature.LSHParams, Params, HasInputCol, HasOutputCol, HasSeed, DefaultParamsWritable, Identifiable, MLWritable

public class BucketedRandomProjectionLSH extends org.apache.spark.ml.feature.LSH<BucketedRandomProjectionLSHModel> implements org.apache.spark.ml.feature.BucketedRandomProjectionLSHParams, HasSeed
This BucketedRandomProjectionLSH implements Locality Sensitive Hashing functions for Euclidean distance metrics.

The input is dense or sparse vectors, each of which represents a point in the Euclidean distance space. The output will be vectors of configurable dimension. Hash values in the same dimension are calculated by the same hash function.

References:

1. Wikipedia on Stable Distributions

2. Wang, Jingdong et al. "Hashing for similarity search: A survey." arXiv preprint arXiv:1408.2927 (2014).

See Also:
  • Constructor Details

    • BucketedRandomProjectionLSH

      public BucketedRandomProjectionLSH(String uid)
    • BucketedRandomProjectionLSH

      public BucketedRandomProjectionLSH()
  • Method Details