#[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 ==.impl StructuralPartialEq for EntityTypesEvaluationMetricsBuilder
Auto Trait Implementations§
impl Freeze for EntityTypesEvaluationMetricsBuilder
impl RefUnwindSafe for EntityTypesEvaluationMetricsBuilder
impl Send for EntityTypesEvaluationMetricsBuilder
impl Sync for EntityTypesEvaluationMetricsBuilder
impl Unpin for EntityTypesEvaluationMetricsBuilder
impl UnwindSafe for EntityTypesEvaluationMetricsBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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