From 0f5359a2ac6687d466c71e5bf5fa8138a9c07934 Mon Sep 17 00:00:00 2001 From: Owais Kazi Date: Tue, 27 Aug 2024 13:12:58 -0700 Subject: [PATCH] Fixed exponent value in explain of SigmoidFunction (#13691) * Fixed exponent in explain of SigmoidFunction Signed-off-by: Owais * Updated CHANGES.txt Signed-off-by: Owais --------- Signed-off-by: Owais --- lucene/CHANGES.txt | 2 ++ .../core/src/java/org/apache/lucene/document/FeatureField.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt index 9ebb3337caf..f26b4b30a88 100644 --- a/lucene/CHANGES.txt +++ b/lucene/CHANGES.txt @@ -403,6 +403,8 @@ Bug Fixes * GITHUB#13627: Fix race condition on flush for DWPT seqNo generation. (Ben Trent, Ao Li) +* GITHUB#13691: Fix incorrect exponent value in explain of SigmoidFunction. (Owais Kazi) + Other -------------------- (No changes) diff --git a/lucene/core/src/java/org/apache/lucene/document/FeatureField.java b/lucene/core/src/java/org/apache/lucene/document/FeatureField.java index ad78b375f88..bedd95cf8a5 100644 --- a/lucene/core/src/java/org/apache/lucene/document/FeatureField.java +++ b/lucene/core/src/java/org/apache/lucene/document/FeatureField.java @@ -475,7 +475,7 @@ public final class FeatureField extends Field { Explanation.match( pivot, "k, pivot feature value that would give a score contribution equal to w/2"), Explanation.match( - pivot, + a, "a, exponent, higher values make the function grow slower before k and faster after k"), Explanation.match(featureValue, "S, feature value")); }