mirror of https://github.com/apache/lucene.git
LUCENE-8012: LTR contrib needs to use float values in explanations
This commit is contained in:
parent
caa731a333
commit
a56cb42fde
|
@ -129,7 +129,7 @@ public class LinearModel extends LTRScoringModel {
|
||||||
"weight on feature"));
|
"weight on feature"));
|
||||||
featureDetails.add(featureExplain);
|
featureDetails.add(featureExplain);
|
||||||
|
|
||||||
details.add(Explanation.match(featureExplain.getValue().doubleValue()
|
details.add(Explanation.match(featureExplain.getValue().floatValue()
|
||||||
* featureToWeight[index], "prod of:", featureDetails));
|
* featureToWeight[index], "prod of:", featureDetails));
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue