#[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 ==
.