#[non_exhaustive]pub struct EntityTypesEvaluationMetricsBuilder { /* private fields */ }Expand description
A builder for EntityTypesEvaluationMetrics.
Implementations§
source§impl EntityTypesEvaluationMetricsBuilder
impl EntityTypesEvaluationMetricsBuilder
sourcepub fn precision(self, input: f64) -> Self
pub fn precision(self, input: f64) -> Self
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.
sourcepub fn set_precision(self, input: Option<f64>) -> Self
pub fn set_precision(self, input: Option<f64>) -> Self
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.
sourcepub fn get_precision(&self) -> &Option<f64>
pub fn get_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.
sourcepub fn recall(self, input: f64) -> Self
pub fn recall(self, input: f64) -> Self
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.
sourcepub fn set_recall(self, input: Option<f64>) -> Self
pub fn set_recall(self, input: Option<f64>) -> Self
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.
sourcepub fn get_recall(&self) -> &Option<f64>
pub fn get_recall(&self) -> &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.
sourcepub fn f1_score(self, input: f64) -> Self
pub fn f1_score(self, input: f64) -> Self
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.
sourcepub fn set_f1_score(self, input: Option<f64>) -> Self
pub fn set_f1_score(self, input: Option<f64>) -> Self
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.
sourcepub fn get_f1_score(&self) -> &Option<f64>
pub fn get_f1_score(&self) -> &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.
sourcepub fn build(self) -> EntityTypesEvaluationMetrics
pub fn build(self) -> EntityTypesEvaluationMetrics
Consumes the builder and constructs a EntityTypesEvaluationMetrics.
Trait Implementations§
source§impl Clone for EntityTypesEvaluationMetricsBuilder
impl Clone for EntityTypesEvaluationMetricsBuilder
source§fn clone(&self) -> EntityTypesEvaluationMetricsBuilder
fn clone(&self) -> EntityTypesEvaluationMetricsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for EntityTypesEvaluationMetricsBuilder
impl Default for EntityTypesEvaluationMetricsBuilder
source§fn default() -> EntityTypesEvaluationMetricsBuilder
fn default() -> EntityTypesEvaluationMetricsBuilder
source§impl PartialEq for EntityTypesEvaluationMetricsBuilder
impl PartialEq for EntityTypesEvaluationMetricsBuilder
source§fn eq(&self, other: &EntityTypesEvaluationMetricsBuilder) -> bool
fn eq(&self, other: &EntityTypesEvaluationMetricsBuilder) -> bool
self and other values to be equal, and is used
by ==.