Module org.apache.lucene.core
Class ScalarQuantizer.ScoreErrorCorrelator
java.lang.Object
org.apache.lucene.util.quantization.ScalarQuantizer.ScoreErrorCorrelator
- Enclosing class:
ScalarQuantizer
This class is used to correlate the scores of the nearest neighbors with the errors in the
scores. This is used to find the best quantile pair for the scalar quantizer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte
private final ScalarQuantizer.OnlineMeanAndVar
private final ScalarQuantizer.OnlineMeanAndVar
private final VectorSimilarityFunction
private final List
<ScalarQuantizer.ScoreDocsAndScoreVariance> private final byte[]
private final byte[]
private final List
<float[]> -
Constructor Summary
ConstructorsConstructorDescriptionScoreErrorCorrelator
(VectorSimilarityFunction function, List<ScalarQuantizer.ScoreDocsAndScoreVariance> nearestNeighbors, List<float[]> vectors, byte bits) -
Method Summary
Modifier and TypeMethodDescription(package private) double
scoreErrorCorrelation
(float lowerQuantile, float upperQuantile)
-
Field Details
-
corr
-
errors
-
function
-
nearestNeighbors
-
vectors
-
query
private final byte[] query -
vector
private final byte[] vector -
bits
private final byte bits
-
-
Constructor Details
-
ScoreErrorCorrelator
public ScoreErrorCorrelator(VectorSimilarityFunction function, List<ScalarQuantizer.ScoreDocsAndScoreVariance> nearestNeighbors, List<float[]> vectors, byte bits)
-
-
Method Details
-
scoreErrorCorrelation
double scoreErrorCorrelation(float lowerQuantile, float upperQuantile)
-