pub enum RankingMetric {
Precision(u64),
Recall(u64),
Ndcg(u64),
Hit(u64),
Mrr,
MrrAt(u64),
}Expand description
A ranking metric specification (3.4.2): precision@k, recall@k,
ndcg@k, hit@k, mrr or mrr@k, with k from 1 to 100.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for RankingMetric
impl Clone for RankingMetric
impl Copy for RankingMetric
Source§impl Debug for RankingMetric
impl Debug for RankingMetric
Source§impl<'de> Deserialize<'de> for RankingMetric
impl<'de> Deserialize<'de> for RankingMetric
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RankingMetric
Source§impl Ord for RankingMetric
impl Ord for RankingMetric
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RankingMetric
impl PartialEq for RankingMetric
Source§impl PartialOrd for RankingMetric
impl PartialOrd for RankingMetric
Source§impl Serialize for RankingMetric
impl Serialize for RankingMetric
impl StructuralPartialEq for RankingMetric
Auto Trait Implementations§
impl Freeze for RankingMetric
impl RefUnwindSafe for RankingMetric
impl Send for RankingMetric
impl Sync for RankingMetric
impl Unpin for RankingMetric
impl UnsafeUnpin for RankingMetric
impl UnwindSafe for RankingMetric
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