Struct aws_sdk_comprehend::types::ClassifierMetadata
source · #[non_exhaustive]pub struct ClassifierMetadata {
pub number_of_labels: Option<i32>,
pub number_of_trained_documents: Option<i32>,
pub number_of_test_documents: Option<i32>,
pub evaluation_metrics: Option<ClassifierEvaluationMetrics>,
}
Expand description
Provides information about a document classifier.
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.number_of_labels: Option<i32>
The number of labels in the input data.
number_of_trained_documents: Option<i32>
The number of documents in the input data that were used to train the classifier. Typically this is 80 to 90 percent of the input documents.
number_of_test_documents: Option<i32>
The number of documents in the input data that were used to test the classifier. Typically this is 10 to 20 percent of the input documents, up to 10,000 documents.
evaluation_metrics: Option<ClassifierEvaluationMetrics>
Describes the result metrics for the test data associated with an documentation classifier.
Implementations§
source§impl ClassifierMetadata
impl ClassifierMetadata
sourcepub fn number_of_labels(&self) -> Option<i32>
pub fn number_of_labels(&self) -> Option<i32>
The number of labels in the input data.
sourcepub fn number_of_trained_documents(&self) -> Option<i32>
pub fn number_of_trained_documents(&self) -> Option<i32>
The number of documents in the input data that were used to train the classifier. Typically this is 80 to 90 percent of the input documents.
sourcepub fn number_of_test_documents(&self) -> Option<i32>
pub fn number_of_test_documents(&self) -> Option<i32>
The number of documents in the input data that were used to test the classifier. Typically this is 10 to 20 percent of the input documents, up to 10,000 documents.
sourcepub fn evaluation_metrics(&self) -> Option<&ClassifierEvaluationMetrics>
pub fn evaluation_metrics(&self) -> Option<&ClassifierEvaluationMetrics>
Describes the result metrics for the test data associated with an documentation classifier.
source§impl ClassifierMetadata
impl ClassifierMetadata
sourcepub fn builder() -> ClassifierMetadataBuilder
pub fn builder() -> ClassifierMetadataBuilder
Creates a new builder-style object to manufacture ClassifierMetadata
.
Trait Implementations§
source§impl Clone for ClassifierMetadata
impl Clone for ClassifierMetadata
source§fn clone(&self) -> ClassifierMetadata
fn clone(&self) -> ClassifierMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClassifierMetadata
impl Debug for ClassifierMetadata
source§impl PartialEq for ClassifierMetadata
impl PartialEq for ClassifierMetadata
source§fn eq(&self, other: &ClassifierMetadata) -> bool
fn eq(&self, other: &ClassifierMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ClassifierMetadata
Auto Trait Implementations§
impl Freeze for ClassifierMetadata
impl RefUnwindSafe for ClassifierMetadata
impl Send for ClassifierMetadata
impl Sync for ClassifierMetadata
impl Unpin for ClassifierMetadata
impl UnwindSafe for ClassifierMetadata
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