pub struct RetrievalMetricConfig {
pub name: String,
pub requires_relevance_judgments: bool,
pub supports_graded_relevance: bool,
pub k_values: Vec<usize>,
pub score_range: (f32, f32),
pub higher_is_better: bool,
}Expand description
Configuration for retrieval metrics
Fields§
§name: StringMetric name
requires_relevance_judgments: boolRequires relevance judgments
supports_graded_relevance: boolSupports graded relevance
k_values: Vec<usize>K values (if applicable)
score_range: (f32, f32)Score range
higher_is_better: boolHigher is better
Trait Implementations§
Source§impl Clone for RetrievalMetricConfig
impl Clone for RetrievalMetricConfig
Source§fn clone(&self) -> RetrievalMetricConfig
fn clone(&self) -> RetrievalMetricConfig
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 RetrievalMetricConfig
impl RefUnwindSafe for RetrievalMetricConfig
impl Send for RetrievalMetricConfig
impl Sync for RetrievalMetricConfig
impl Unpin for RetrievalMetricConfig
impl UnwindSafe for RetrievalMetricConfig
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