Enum MlGenerationMetric
pub enum MlGenerationMetric {
Bleu,
Rouge,
Meteor,
BertScore,
ExactMatch,
Perplexity,
}Variants§
Implementations§
§impl MlGenerationMetric
impl MlGenerationMetric
§impl MlGenerationMetric
impl MlGenerationMetric
pub const fn direction(self) -> MlMetricDirection
Trait Implementations§
§impl Clone for MlGenerationMetric
impl Clone for MlGenerationMetric
§fn clone(&self) -> MlGenerationMetric
fn clone(&self) -> MlGenerationMetric
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 MlGenerationMetric
impl Debug for MlGenerationMetric
§impl Display for MlGenerationMetric
impl Display for MlGenerationMetric
§impl FromStr for MlGenerationMetric
impl FromStr for MlGenerationMetric
§type Err = MlMetricError
type Err = MlMetricError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<MlGenerationMetric, <MlGenerationMetric as FromStr>::Err>
fn from_str( value: &str, ) -> Result<MlGenerationMetric, <MlGenerationMetric as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for MlGenerationMetric
impl Hash for MlGenerationMetric
§impl Ord for MlGenerationMetric
impl Ord for MlGenerationMetric
§fn cmp(&self, other: &MlGenerationMetric) -> Ordering
fn cmp(&self, other: &MlGenerationMetric) -> Ordering
1.21.0 · 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
§impl PartialEq for MlGenerationMetric
impl PartialEq for MlGenerationMetric
§impl PartialOrd for MlGenerationMetric
impl PartialOrd for MlGenerationMetric
impl Copy for MlGenerationMetric
impl Eq for MlGenerationMetric
impl StructuralPartialEq for MlGenerationMetric
Auto Trait Implementations§
impl Freeze for MlGenerationMetric
impl RefUnwindSafe for MlGenerationMetric
impl Send for MlGenerationMetric
impl Sync for MlGenerationMetric
impl Unpin for MlGenerationMetric
impl UnsafeUnpin for MlGenerationMetric
impl UnwindSafe for MlGenerationMetric
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