Skip to content

Commit c10f782

Browse files
committed
Clarify Javadoc for L2ScoreNormalizer (l2_norm) (elastic#128808)
* propgating retrievers to inner retrievers * Java doc fixed * Cleaned up * Update docs/changelog/128808.yaml * Enhanced comment as stated by the copilot * Delete docs/changelog/128808.yaml
1 parent d9e586b commit c10f782

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/rank-rrf/src/main/java/org/elasticsearch/xpack/rank/linear/L2ScoreNormalizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
/**
1414
* A score normalizer that applies L2 normalization to a set of scores.
1515
* <p>
16-
* This normalizer scales the scores so that the L2 norm of the score vector is 1,
17-
* if possible. If all scores are zero or NaN, normalization is skipped and the original scores are returned.
16+
* Each score is divided by the L2 norm of the scores if the norm is greater than a small EPSILON.
17+
* If all scores are zero or NaN, normalization is skipped and the original scores are returned.
1818
* </p>
1919
*/
2020
public class L2ScoreNormalizer extends ScoreNormalizer {

0 commit comments

Comments
 (0)