Struct aws_sdk_comprehend::model::classifier_metadata::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for ClassifierMetadata.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn number_of_labels(self, input: i32) -> Self
pub fn number_of_labels(self, input: i32) -> Self
The number of labels in the input data.
sourcepub fn set_number_of_labels(self, input: Option<i32>) -> Self
pub fn set_number_of_labels(self, input: Option<i32>) -> Self
The number of labels in the input data.
sourcepub fn number_of_trained_documents(self, input: i32) -> Self
pub fn number_of_trained_documents(self, input: i32) -> Self
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 set_number_of_trained_documents(self, input: Option<i32>) -> Self
pub fn set_number_of_trained_documents(self, input: Option<i32>) -> Self
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, input: i32) -> Self
pub fn number_of_test_documents(self, input: i32) -> Self
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 set_number_of_test_documents(self, input: Option<i32>) -> Self
pub fn set_number_of_test_documents(self, input: Option<i32>) -> Self
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, input: ClassifierEvaluationMetrics) -> Self
pub fn evaluation_metrics(self, input: ClassifierEvaluationMetrics) -> Self
Describes the result metrics for the test data associated with an documentation classifier.
sourcepub fn set_evaluation_metrics(
self,
input: Option<ClassifierEvaluationMetrics>
) -> Self
pub fn set_evaluation_metrics(
self,
input: Option<ClassifierEvaluationMetrics>
) -> Self
Describes the result metrics for the test data associated with an documentation classifier.
sourcepub fn build(self) -> ClassifierMetadata
pub fn build(self) -> ClassifierMetadata
Consumes the builder and constructs a ClassifierMetadata.