#[non_exhaustive]pub struct EntityTypesEvaluationMetrics {
pub precision: Option<f64>,
pub recall: Option<f64>,
pub f1_score: Option<f64>,
}Expand description
Detailed information about the accuracy of an entity recognizer for a specific entity type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.precision: Option<f64>A measure of the usefulness of the recognizer results for a specific entity type in the test data. High precision means that the recognizer returned substantially more relevant results than irrelevant ones.
recall: Option<f64>A measure of how complete the recognizer results are for a specific entity type in the test data. High recall means that the recognizer returned most of the relevant results.
f1_score: Option<f64>A measure of how accurate the recognizer results are for a specific entity type in the test data. It is derived from the Precision and Recall values. The F1Score is the harmonic average of the two scores. The highest score is 1, and the worst score is 0.
Implementations§
source§impl EntityTypesEvaluationMetrics
impl EntityTypesEvaluationMetrics
sourcepub fn precision(&self) -> Option<f64>
pub fn precision(&self) -> Option<f64>
A measure of the usefulness of the recognizer results for a specific entity type in the test data. High precision means that the recognizer returned substantially more relevant results than irrelevant ones.
source§impl EntityTypesEvaluationMetrics
impl EntityTypesEvaluationMetrics
sourcepub fn builder() -> EntityTypesEvaluationMetricsBuilder
pub fn builder() -> EntityTypesEvaluationMetricsBuilder
Creates a new builder-style object to manufacture EntityTypesEvaluationMetrics.
Trait Implementations§
source§impl Clone for EntityTypesEvaluationMetrics
impl Clone for EntityTypesEvaluationMetrics
source§fn clone(&self) -> EntityTypesEvaluationMetrics
fn clone(&self) -> EntityTypesEvaluationMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EntityTypesEvaluationMetrics
impl Debug for EntityTypesEvaluationMetrics
source§impl PartialEq for EntityTypesEvaluationMetrics
impl PartialEq for EntityTypesEvaluationMetrics
source§fn eq(&self, other: &EntityTypesEvaluationMetrics) -> bool
fn eq(&self, other: &EntityTypesEvaluationMetrics) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for EntityTypesEvaluationMetrics
Auto Trait Implementations§
impl Freeze for EntityTypesEvaluationMetrics
impl RefUnwindSafe for EntityTypesEvaluationMetrics
impl Send for EntityTypesEvaluationMetrics
impl Sync for EntityTypesEvaluationMetrics
impl Unpin for EntityTypesEvaluationMetrics
impl UnwindSafe for EntityTypesEvaluationMetrics
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
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>
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>
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 more