pub struct RankerConfig {
pub k1: f64,
pub b: f64,
pub weights: [f64; 6],
}Expand description
BM25F ranker parameters. INJECTED, never read from the environment: the kernel is pure, so
Default is the frozen calibration and any override is passed in by the caller (the dev-only
parameter sweep via eidos-eval-runner --k1/--b/--weights). This is what makes “same inputs →
same scores” hold without depending on ambient process state.
Fields§
§k1: f64§b: f64§weights: [f64; 6]Trait Implementations§
Source§impl Clone for RankerConfig
impl Clone for RankerConfig
Source§fn clone(&self) -> RankerConfig
fn clone(&self) -> RankerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RankerConfig
Source§impl Debug for RankerConfig
impl Debug for RankerConfig
Source§impl Default for RankerConfig
impl Default for RankerConfig
Source§impl PartialEq for RankerConfig
impl PartialEq for RankerConfig
Source§fn eq(&self, other: &RankerConfig) -> bool
fn eq(&self, other: &RankerConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RankerConfig
Auto Trait Implementations§
impl Freeze for RankerConfig
impl RefUnwindSafe for RankerConfig
impl Send for RankerConfig
impl Sync for RankerConfig
impl Unpin for RankerConfig
impl UnsafeUnpin for RankerConfig
impl UnwindSafe for RankerConfig
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