pub struct GenerationMetricConfig {
pub name: String,
pub requires_reference: bool,
pub requires_context: bool,
pub score_range: (f32, f32),
pub higher_is_better: bool,
pub evaluation_type: EvaluationType,
}Expand description
Configuration for generation metrics
Fields§
§name: StringMetric name
requires_reference: boolRequires reference answer
requires_context: boolRequires context
score_range: (f32, f32)Score range
higher_is_better: boolHigher is better
evaluation_type: EvaluationTypeEvaluation type
Trait Implementations§
Source§impl Clone for GenerationMetricConfig
impl Clone for GenerationMetricConfig
Source§fn clone(&self) -> GenerationMetricConfig
fn clone(&self) -> GenerationMetricConfig
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 moreAuto Trait Implementations§
impl Freeze for GenerationMetricConfig
impl RefUnwindSafe for GenerationMetricConfig
impl Send for GenerationMetricConfig
impl Sync for GenerationMetricConfig
impl Unpin for GenerationMetricConfig
impl UnwindSafe for GenerationMetricConfig
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