pub struct RetrievalEvalConfig {
pub enabled_metrics: Vec<RetrievalMetricType>,
pub k_values: Vec<usize>,
pub relevance_threshold: f32,
pub use_graded_relevance: bool,
pub max_relevance_grade: f32,
pub evaluation_cutoff: usize,
}Expand description
Configuration for retrieval evaluation
Fields§
§enabled_metrics: Vec<RetrievalMetricType>Enabled metrics
k_values: Vec<usize>K values for Precision@K, Recall@K, NDCG@K
relevance_threshold: f32Relevance threshold for binary metrics
use_graded_relevance: boolUse graded relevance (vs binary)
max_relevance_grade: f32Maximum grade for graded relevance
evaluation_cutoff: usizeEvaluation cutoff (maximum documents to consider)
Trait Implementations§
Source§impl Clone for RetrievalEvalConfig
impl Clone for RetrievalEvalConfig
Source§fn clone(&self) -> RetrievalEvalConfig
fn clone(&self) -> RetrievalEvalConfig
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 RetrievalEvalConfig
impl Debug for RetrievalEvalConfig
Auto Trait Implementations§
impl Freeze for RetrievalEvalConfig
impl RefUnwindSafe for RetrievalEvalConfig
impl Send for RetrievalEvalConfig
impl Sync for RetrievalEvalConfig
impl Unpin for RetrievalEvalConfig
impl UnwindSafe for RetrievalEvalConfig
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