Enum MlRankingMetric
pub enum MlRankingMetric {
Ndcg,
Map,
Mrr,
HitRate,
RecallAtK,
PrecisionAtK,
}Variants§
Implementations§
§impl MlRankingMetric
impl MlRankingMetric
§impl MlRankingMetric
impl MlRankingMetric
pub const fn direction(self) -> MlMetricDirection
Trait Implementations§
§impl Clone for MlRankingMetric
impl Clone for MlRankingMetric
§fn clone(&self) -> MlRankingMetric
fn clone(&self) -> MlRankingMetric
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 more§impl Debug for MlRankingMetric
impl Debug for MlRankingMetric
§impl Display for MlRankingMetric
impl Display for MlRankingMetric
§impl FromStr for MlRankingMetric
impl FromStr for MlRankingMetric
§type Err = MlMetricError
type Err = MlMetricError
The associated error which can be returned from parsing.
§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 more§impl Hash for MlRankingMetric
impl Hash for MlRankingMetric
§impl Ord for MlRankingMetric
impl Ord for MlRankingMetric
§impl PartialEq for MlRankingMetric
impl PartialEq for MlRankingMetric
§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