Skip to main content

Module bayesian

Module bayesian 

Source
Expand description

Legacy composite-prior ranking transform.

This module preserves the arithmetic from the original paper-facing API for explicit compatibility. Its sigmoid output is a bounded score signal, not a class-conditional likelihood, and the term-frequency, document-length, and corpus-rate inputs act as log-odds biases. Consequently the result is a ranking score, not a calibrated posterior probability. New query paths use crate::BayesianBM25Scorer, which calibrates the complete BM25 query score exactly once.

Structsยง

LegacyCompositePriorTransform
Historical score transform that combines several dependent BM25-derived signals. It is intentionally named Legacy so callers do not mistake the output for a probability-model contract.