pub enum RetrievalMetricType {
PrecisionAtK,
RecallAtK,
F1AtK,
MeanAveragePrecision,
MeanReciprocalRank,
NdcgAtK,
HitRate,
AveragePrecision,
ReciprocalRank,
Coverage,
Diversity,
Novelty,
}Expand description
Types of retrieval evaluation metrics
Variants§
PrecisionAtK
Precision at K
RecallAtK
Recall at K
F1AtK
F1 Score at K
MeanAveragePrecision
Mean Average Precision
MeanReciprocalRank
Mean Reciprocal Rank
NdcgAtK
Normalized Discounted Cumulative Gain at K
HitRate
Hit Rate (at least one relevant document in top K)
AveragePrecision
Average Precision
ReciprocalRank
Reciprocal Rank
Coverage
Coverage (fraction of query terms covered)
Diversity
Diversity metrics
Novelty
Novelty metrics
Trait Implementations§
Source§impl Clone for RetrievalMetricType
impl Clone for RetrievalMetricType
Source§fn clone(&self) -> RetrievalMetricType
fn clone(&self) -> RetrievalMetricType
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 RetrievalMetricType
impl Debug for RetrievalMetricType
Source§impl PartialEq for RetrievalMetricType
impl PartialEq for RetrievalMetricType
impl Eq for RetrievalMetricType
impl StructuralPartialEq for RetrievalMetricType
Auto Trait Implementations§
impl Freeze for RetrievalMetricType
impl RefUnwindSafe for RetrievalMetricType
impl Send for RetrievalMetricType
impl Sync for RetrievalMetricType
impl Unpin for RetrievalMetricType
impl UnwindSafe for RetrievalMetricType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.