#[non_exhaustive]pub struct EntityRecognizerEvaluationMetricsBuilder { /* private fields */ }Expand description
A builder for EntityRecognizerEvaluationMetrics.
Implementations§
source§impl EntityRecognizerEvaluationMetricsBuilder
impl EntityRecognizerEvaluationMetricsBuilder
sourcepub fn precision(self, input: f64) -> Self
pub fn precision(self, input: f64) -> Self
A measure of the usefulness of the recognizer results 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 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 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 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 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 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 the test data. It is derived from the Precision and Recall values. The F1Score is the harmonic average of the two scores. For plain text entity recognizer models, the range is 0 to 100, where 100 is the best score. For PDF/Word entity recognizer models, the range is 0 to 1, where 1 is the best score.
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 the test data. It is derived from the Precision and Recall values. The F1Score is the harmonic average of the two scores. For plain text entity recognizer models, the range is 0 to 100, where 100 is the best score. For PDF/Word entity recognizer models, the range is 0 to 1, where 1 is the best score.
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 the test data. It is derived from the Precision and Recall values. The F1Score is the harmonic average of the two scores. For plain text entity recognizer models, the range is 0 to 100, where 100 is the best score. For PDF/Word entity recognizer models, the range is 0 to 1, where 1 is the best score.
sourcepub fn build(self) -> EntityRecognizerEvaluationMetrics
pub fn build(self) -> EntityRecognizerEvaluationMetrics
Consumes the builder and constructs a EntityRecognizerEvaluationMetrics.
Trait Implementations§
source§impl Clone for EntityRecognizerEvaluationMetricsBuilder
impl Clone for EntityRecognizerEvaluationMetricsBuilder
source§fn clone(&self) -> EntityRecognizerEvaluationMetricsBuilder
fn clone(&self) -> EntityRecognizerEvaluationMetricsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for EntityRecognizerEvaluationMetricsBuilder
impl Default for EntityRecognizerEvaluationMetricsBuilder
source§fn default() -> EntityRecognizerEvaluationMetricsBuilder
fn default() -> EntityRecognizerEvaluationMetricsBuilder
source§impl PartialEq for EntityRecognizerEvaluationMetricsBuilder
impl PartialEq for EntityRecognizerEvaluationMetricsBuilder
source§fn eq(&self, other: &EntityRecognizerEvaluationMetricsBuilder) -> bool
fn eq(&self, other: &EntityRecognizerEvaluationMetricsBuilder) -> bool
self and other values to be equal, and is used
by ==.