Interface ClassifierMetadata.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ClassifierMetadata.Builder,
,ClassifierMetadata> SdkBuilder<ClassifierMetadata.Builder,
,ClassifierMetadata> SdkPojo
- Enclosing class:
ClassifierMetadata
public static interface ClassifierMetadata.Builder
extends SdkPojo, CopyableBuilder<ClassifierMetadata.Builder,ClassifierMetadata>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ClassifierMetadata.Builder
evaluationMetrics
(Consumer<ClassifierEvaluationMetrics.Builder> evaluationMetrics) Describes the result metrics for the test data associated with an documentation classifier.evaluationMetrics
(ClassifierEvaluationMetrics evaluationMetrics) Describes the result metrics for the test data associated with an documentation classifier.numberOfLabels
(Integer numberOfLabels) The number of labels in the input data.numberOfTestDocuments
(Integer numberOfTestDocuments) The number of documents in the input data that were used to test the classifier.numberOfTrainedDocuments
(Integer numberOfTrainedDocuments) The number of documents in the input data that were used to train the classifier.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
numberOfLabels
The number of labels in the input data.
- Parameters:
numberOfLabels
- The number of labels in the input data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
numberOfTrainedDocuments
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.
- Parameters:
numberOfTrainedDocuments
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
numberOfTestDocuments
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.
- Parameters:
numberOfTestDocuments
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationMetrics
Describes the result metrics for the test data associated with an documentation classifier.
- Parameters:
evaluationMetrics
- Describes the result metrics for the test data associated with an documentation classifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationMetrics
default ClassifierMetadata.Builder evaluationMetrics(Consumer<ClassifierEvaluationMetrics.Builder> evaluationMetrics) Describes the result metrics for the test data associated with an documentation classifier.
This is a convenience method that creates an instance of theClassifierEvaluationMetrics.Builder
avoiding the need to create one manually viaClassifierEvaluationMetrics.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toevaluationMetrics(ClassifierEvaluationMetrics)
.- Parameters:
evaluationMetrics
- a consumer that will call methods onClassifierEvaluationMetrics.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-