Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quantize in range [1, 2^b) #575

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Quantize in range [1, 2^b) #575

merged 1 commit into from
Feb 13, 2024

Conversation

elshize
Copy link
Member

@elshize elshize commented Feb 8, 2024

Due to quantization, some scores can be 0, but our frequency encoding (which is used for scores) assumes positive values. To fix it, we quantize into a range starting at 1 instead.

Fixes: #572

Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (62d4dcc) 93.29% compared to head (25ff231) 93.27%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #575      +/-   ##
==========================================
- Coverage   93.29%   93.27%   -0.02%     
==========================================
  Files          90       89       -1     
  Lines        4457     4448       -9     
==========================================
- Hits         4158     4149       -9     
  Misses        299      299              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@elshize elshize force-pushed the fix-quantizer-zero-scores branch 2 times, most recently from c56d323 to b2a0439 Compare February 12, 2024 03:24
Due to quantization, some scores can be 0, but our frequency encoding
(which is used for scores) assumes positive values. To fix it, we
quantize into a range starting at 1 instead.

Changelog-changed: Scores are quantized starting at 1 instead of 0
Fixes: #572
Signed-off-by: Michal Siedlaczek <michal@siedlaczek.me>
@elshize elshize force-pushed the fix-quantizer-zero-scores branch from b2a0439 to 25ff231 Compare February 12, 2024 03:26
@elshize elshize merged commit ce97f7b into master Feb 13, 2024
10 checks passed
@elshize elshize deleted the fix-quantizer-zero-scores branch February 13, 2024 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extreme score from Query-Likelihood Quantized Index
2 participants