#[non_exhaustive]pub struct AdapterVersionEvaluationMetric {
pub baseline: Option<EvaluationMetric>,
pub adapter_version: Option<EvaluationMetric>,
pub feature_type: Option<FeatureType>,
}
Expand description
Contains information on the metrics used to evalute the peformance of a given adapter version. Includes data for baseline model performance and individual adapter version perfromance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.baseline: Option<EvaluationMetric>
The F1 score, precision, and recall metrics for the baseline model.
adapter_version: Option<EvaluationMetric>
The F1 score, precision, and recall metrics for the baseline model.
feature_type: Option<FeatureType>
Indicates the feature type being analyzed by a given adapter version.
Implementations§
source§impl AdapterVersionEvaluationMetric
impl AdapterVersionEvaluationMetric
sourcepub fn baseline(&self) -> Option<&EvaluationMetric>
pub fn baseline(&self) -> Option<&EvaluationMetric>
The F1 score, precision, and recall metrics for the baseline model.
sourcepub fn adapter_version(&self) -> Option<&EvaluationMetric>
pub fn adapter_version(&self) -> Option<&EvaluationMetric>
The F1 score, precision, and recall metrics for the baseline model.
sourcepub fn feature_type(&self) -> Option<&FeatureType>
pub fn feature_type(&self) -> Option<&FeatureType>
Indicates the feature type being analyzed by a given adapter version.
source§impl AdapterVersionEvaluationMetric
impl AdapterVersionEvaluationMetric
sourcepub fn builder() -> AdapterVersionEvaluationMetricBuilder
pub fn builder() -> AdapterVersionEvaluationMetricBuilder
Creates a new builder-style object to manufacture AdapterVersionEvaluationMetric
.
Trait Implementations§
source§impl Clone for AdapterVersionEvaluationMetric
impl Clone for AdapterVersionEvaluationMetric
source§fn clone(&self) -> AdapterVersionEvaluationMetric
fn clone(&self) -> AdapterVersionEvaluationMetric
Returns a copy 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 moresource§impl PartialEq for AdapterVersionEvaluationMetric
impl PartialEq for AdapterVersionEvaluationMetric
source§fn eq(&self, other: &AdapterVersionEvaluationMetric) -> bool
fn eq(&self, other: &AdapterVersionEvaluationMetric) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AdapterVersionEvaluationMetric
Auto Trait Implementations§
impl Freeze for AdapterVersionEvaluationMetric
impl RefUnwindSafe for AdapterVersionEvaluationMetric
impl Send for AdapterVersionEvaluationMetric
impl Sync for AdapterVersionEvaluationMetric
impl Unpin for AdapterVersionEvaluationMetric
impl UnwindSafe for AdapterVersionEvaluationMetric
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.