public static interface ClassifierMetadata.Builder extends SdkPojo, CopyableBuilder<ClassifierMetadata.Builder,ClassifierMetadata>
Modifier and Type | Method and Description |
---|---|
ClassifierMetadata.Builder |
evaluationMetrics(ClassifierEvaluationMetrics evaluationMetrics)
Describes the result metrics for the test data associated with an documentation classifier.
|
default ClassifierMetadata.Builder |
evaluationMetrics(Consumer<ClassifierEvaluationMetrics.Builder> evaluationMetrics)
Describes the result metrics for the test data associated with an documentation classifier.
|
ClassifierMetadata.Builder |
numberOfLabels(Integer numberOfLabels)
The number of labels in the input data.
|
ClassifierMetadata.Builder |
numberOfTestDocuments(Integer numberOfTestDocuments)
The number of documents in the input data that were used to test the classifier.
|
ClassifierMetadata.Builder |
numberOfTrainedDocuments(Integer numberOfTrainedDocuments)
The number of documents in the input data that were used to train the classifier.
|
copy
applyMutation, build
ClassifierMetadata.Builder numberOfLabels(Integer numberOfLabels)
The number of labels in the input data.
numberOfLabels
- The number of labels in the input data.ClassifierMetadata.Builder numberOfTrainedDocuments(Integer 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.
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.ClassifierMetadata.Builder numberOfTestDocuments(Integer 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.
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.ClassifierMetadata.Builder evaluationMetrics(ClassifierEvaluationMetrics evaluationMetrics)
Describes the result metrics for the test data associated with an documentation classifier.
evaluationMetrics
- Describes the result metrics for the test data associated with an documentation classifier.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 that creates an instance of theClassifierEvaluationMetrics.Builder
avoiding
the need to create one manually via ClassifierEvaluationMetrics.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to evaluationMetrics(ClassifierEvaluationMetrics)
.evaluationMetrics
- a consumer that will call methods on ClassifierEvaluationMetrics.Builder
evaluationMetrics(ClassifierEvaluationMetrics)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.