Class ClassifierMetadata

    • Method Detail

      • numberOfLabels

        public final Integer numberOfLabels()

        The number of labels in the input data.

        Returns:
        The number of labels in the input data.
      • numberOfTrainedDocuments

        public final 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.

        Returns:
        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.
      • numberOfTestDocuments

        public final 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.

        Returns:
        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.
      • evaluationMetrics

        public final ClassifierEvaluationMetrics evaluationMetrics()

        Describes the result metrics for the test data associated with an documentation classifier.

        Returns:
        Describes the result metrics for the test data associated with an documentation classifier.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)