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 Details

    • numberOfLabels

      ClassifierMetadata.Builder numberOfLabels(Integer 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

      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.

      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

      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, 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

      ClassifierMetadata.Builder evaluationMetrics(ClassifierEvaluationMetrics 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 the ClassifierEvaluationMetrics.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).

      Parameters:
      evaluationMetrics - a consumer that will call methods on ClassifierEvaluationMetrics.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: