pub struct RrfReRanker {
pub k: f32,
}Expand description
Reciprocal-rank fusion. Combines multiple ranked result lists by
summing 1 / (k + rank) across the lists for every document that
appears in at least one.
Original paper: Cormack, Clarke & Büttcher (2009), “Reciprocal Rank Fusion outperforms Condorcet and individual Rank Learning Methods.”
Fields§
§k: f32RRF smoothing constant. 60 is conventional.
Implementations§
Source§impl RrfReRanker
impl RrfReRanker
Sourcepub fn new(k: f32) -> Self
pub fn new(k: f32) -> Self
Construct with a custom k. Panics if k is non-finite or
non-positive.
Trait Implementations§
Source§impl Clone for RrfReRanker
impl Clone for RrfReRanker
Source§fn clone(&self) -> RrfReRanker
fn clone(&self) -> RrfReRanker
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RrfReRanker
impl Debug for RrfReRanker
Source§impl Default for RrfReRanker
impl Default for RrfReRanker
Source§impl PartialEq for RrfReRanker
impl PartialEq for RrfReRanker
impl Copy for RrfReRanker
impl StructuralPartialEq for RrfReRanker
Auto Trait Implementations§
impl Freeze for RrfReRanker
impl RefUnwindSafe for RrfReRanker
impl Send for RrfReRanker
impl Sync for RrfReRanker
impl Unpin for RrfReRanker
impl UnsafeUnpin for RrfReRanker
impl UnwindSafe for RrfReRanker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more