pub enum ScoreCombination {
Average,
Weighted(Vec<f32>),
Max,
Min,
Learned,
}Expand description
Methods for combining scores from multiple rerankers
Variants§
Average
Average all scores
Weighted(Vec<f32>)
Weighted combination
Max
Maximum score
Min
Minimum score
Learned
Learned combination (requires training)
Trait Implementations§
Source§impl Clone for ScoreCombination
impl Clone for ScoreCombination
Source§fn clone(&self) -> ScoreCombination
fn clone(&self) -> ScoreCombination
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 moreAuto Trait Implementations§
impl Freeze for ScoreCombination
impl RefUnwindSafe for ScoreCombination
impl Send for ScoreCombination
impl Sync for ScoreCombination
impl Unpin for ScoreCombination
impl UnwindSafe for ScoreCombination
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