pub enum MlRankingMetric {
Ndcg,
Map,
Mrr,
HitRate,
RecallAtK,
PrecisionAtK,
}Variants§
Implementations§
Source§impl MlRankingMetric
impl MlRankingMetric
pub const fn direction(self) -> MlMetricDirection
Trait Implementations§
Source§impl Clone for MlRankingMetric
impl Clone for MlRankingMetric
Source§fn clone(&self) -> MlRankingMetric
fn clone(&self) -> MlRankingMetric
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MlRankingMetric
impl Debug for MlRankingMetric
Source§impl Display for MlRankingMetric
impl Display for MlRankingMetric
Source§impl FromStr for MlRankingMetric
impl FromStr for MlRankingMetric
Source§type Err = MlMetricError
type Err = MlMetricError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<MlRankingMetric, <MlRankingMetric as FromStr>::Err>
fn from_str( value: &str, ) -> Result<MlRankingMetric, <MlRankingMetric as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for MlRankingMetric
impl Hash for MlRankingMetric
Source§impl Ord for MlRankingMetric
impl Ord for MlRankingMetric
Source§fn cmp(&self, other: &MlRankingMetric) -> Ordering
fn cmp(&self, other: &MlRankingMetric) -> Ordering
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
Source§impl PartialEq for MlRankingMetric
impl PartialEq for MlRankingMetric
Source§fn eq(&self, other: &MlRankingMetric) -> bool
fn eq(&self, other: &MlRankingMetric) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MlRankingMetric
impl PartialOrd for MlRankingMetric
impl Copy for MlRankingMetric
impl Eq for MlRankingMetric
impl StructuralPartialEq for MlRankingMetric
Auto Trait Implementations§
impl Freeze for MlRankingMetric
impl RefUnwindSafe for MlRankingMetric
impl Send for MlRankingMetric
impl Sync for MlRankingMetric
impl Unpin for MlRankingMetric
impl UnsafeUnpin for MlRankingMetric
impl UnwindSafe for MlRankingMetric
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