Package smile.neighbor.lsh
Class PosterioriModel
java.lang.Object
smile.neighbor.lsh.PosterioriModel
- All Implemented Interfaces:
Serializable
Pre-computed posteriori probabilities for generating multiple probes.
- See Also:
-
Constructor Summary
ConstructorDescriptionPosterioriModel
(MultiProbeHash hash, MultiProbeSample[] samples, int Nz, double sigma) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetProbeSequence
(double[] x, double recall, int T) Generate query-directed probes.
-
Constructor Details
-
PosterioriModel
Constructor.- Parameters:
hash
- the hash function.samples
- the training samples.Nz
- the size of lookup table.sigma
- the Parzen window width.
-
-
Method Details
-
getProbeSequence
Generate query-directed probes.- Parameters:
x
- the query object.recall
- the threshold of global probability of probes as a quality control parameter.T
- the maximum number of probes.- Returns:
- the list of probe buckets.
-