Package org.apache.spark.ml.feature
Interface BucketedRandomProjectionLSHParams
- All Superinterfaces:
Identifiable
,Params
,Serializable
- All Known Implementing Classes:
BucketedRandomProjectionLSH
,BucketedRandomProjectionLSHModel
Params for
BucketedRandomProjectionLSH
.-
Method Summary
Modifier and TypeMethodDescriptionThe length of each hash bucket, a larger bucket lowers the false negative rate.double
Methods inherited from interface org.apache.spark.ml.util.Identifiable
toString, uid
Methods inherited from interface org.apache.spark.ml.param.Params
clear, copy, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
-
Method Details
-
bucketLength
DoubleParam bucketLength()The length of each hash bucket, a larger bucket lowers the false negative rate. The number of buckets will be(max L2 norm of input vectors) / bucketLength
.If input vectors are normalized, 1-10 times of pow(numRecords, -1/inputDim) would be a reasonable value
- Returns:
- (undocumented)
-
getBucketLength
double getBucketLength()
-