Class TextSentimentEvaluationMetrics

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.automl.v1.TextSentimentEvaluationMetrics
All Implemented Interfaces:
TextSentimentEvaluationMetricsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class TextSentimentEvaluationMetrics extends com.google.protobuf.GeneratedMessage implements TextSentimentEvaluationMetricsOrBuilder
 Model evaluation metrics for text sentiment problems.
 
Protobuf type google.cloud.automl.v1.TextSentimentEvaluationMetrics
See Also:
  • Field Details

    • PRECISION_FIELD_NUMBER

      public static final int PRECISION_FIELD_NUMBER
      See Also:
    • RECALL_FIELD_NUMBER

      public static final int RECALL_FIELD_NUMBER
      See Also:
    • F1_SCORE_FIELD_NUMBER

      public static final int F1_SCORE_FIELD_NUMBER
      See Also:
    • MEAN_ABSOLUTE_ERROR_FIELD_NUMBER

      public static final int MEAN_ABSOLUTE_ERROR_FIELD_NUMBER
      See Also:
    • MEAN_SQUARED_ERROR_FIELD_NUMBER

      public static final int MEAN_SQUARED_ERROR_FIELD_NUMBER
      See Also:
    • LINEAR_KAPPA_FIELD_NUMBER

      public static final int LINEAR_KAPPA_FIELD_NUMBER
      See Also:
    • QUADRATIC_KAPPA_FIELD_NUMBER

      public static final int QUADRATIC_KAPPA_FIELD_NUMBER
      See Also:
    • CONFUSION_MATRIX_FIELD_NUMBER

      public static final int CONFUSION_MATRIX_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getPrecision

      public float getPrecision()
       Output only. Precision.
       
      float precision = 1;
      Specified by:
      getPrecision in interface TextSentimentEvaluationMetricsOrBuilder
      Returns:
      The precision.
    • getRecall

      public float getRecall()
       Output only. Recall.
       
      float recall = 2;
      Specified by:
      getRecall in interface TextSentimentEvaluationMetricsOrBuilder
      Returns:
      The recall.
    • getF1Score

      public float getF1Score()
       Output only. The harmonic mean of recall and precision.
       
      float f1_score = 3;
      Specified by:
      getF1Score in interface TextSentimentEvaluationMetricsOrBuilder
      Returns:
      The f1Score.
    • getMeanAbsoluteError

      public float getMeanAbsoluteError()
       Output only. Mean absolute error. Only set for the overall model
       evaluation, not for evaluation of a single annotation spec.
       
      float mean_absolute_error = 4;
      Specified by:
      getMeanAbsoluteError in interface TextSentimentEvaluationMetricsOrBuilder
      Returns:
      The meanAbsoluteError.
    • getMeanSquaredError

      public float getMeanSquaredError()
       Output only. Mean squared error. Only set for the overall model
       evaluation, not for evaluation of a single annotation spec.
       
      float mean_squared_error = 5;
      Specified by:
      getMeanSquaredError in interface TextSentimentEvaluationMetricsOrBuilder
      Returns:
      The meanSquaredError.
    • getLinearKappa

      public float getLinearKappa()
       Output only. Linear weighted kappa. Only set for the overall model
       evaluation, not for evaluation of a single annotation spec.
       
      float linear_kappa = 6;
      Specified by:
      getLinearKappa in interface TextSentimentEvaluationMetricsOrBuilder
      Returns:
      The linearKappa.
    • getQuadraticKappa

      public float getQuadraticKappa()
       Output only. Quadratic weighted kappa. Only set for the overall model
       evaluation, not for evaluation of a single annotation spec.
       
      float quadratic_kappa = 7;
      Specified by:
      getQuadraticKappa in interface TextSentimentEvaluationMetricsOrBuilder
      Returns:
      The quadraticKappa.
    • hasConfusionMatrix

      public boolean hasConfusionMatrix()
       Output only. Confusion matrix of the evaluation.
       Only set for the overall model evaluation, not for evaluation of a single
       annotation spec.
       
      .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;
      Specified by:
      hasConfusionMatrix in interface TextSentimentEvaluationMetricsOrBuilder
      Returns:
      Whether the confusionMatrix field is set.
    • getConfusionMatrix

       Output only. Confusion matrix of the evaluation.
       Only set for the overall model evaluation, not for evaluation of a single
       annotation spec.
       
      .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;
      Specified by:
      getConfusionMatrix in interface TextSentimentEvaluationMetricsOrBuilder
      Returns:
      The confusionMatrix.
    • getConfusionMatrixOrBuilder

      public ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder()
       Output only. Confusion matrix of the evaluation.
       Only set for the overall model evaluation, not for evaluation of a single
       annotation spec.
       
      .google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 8;
      Specified by:
      getConfusionMatrixOrBuilder in interface TextSentimentEvaluationMetricsOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static TextSentimentEvaluationMetrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TextSentimentEvaluationMetrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TextSentimentEvaluationMetrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TextSentimentEvaluationMetrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TextSentimentEvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TextSentimentEvaluationMetrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TextSentimentEvaluationMetrics parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TextSentimentEvaluationMetrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TextSentimentEvaluationMetrics parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TextSentimentEvaluationMetrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TextSentimentEvaluationMetrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TextSentimentEvaluationMetrics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public TextSentimentEvaluationMetrics.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static TextSentimentEvaluationMetrics.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected TextSentimentEvaluationMetrics.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static TextSentimentEvaluationMetrics getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TextSentimentEvaluationMetrics> parser()
    • getParserForType

      public com.google.protobuf.Parser<TextSentimentEvaluationMetrics> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public TextSentimentEvaluationMetrics getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder