Package com.google.cloud.automl.v1
Class ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
com.google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder
- All Implemented Interfaces:
ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ClassificationEvaluationMetrics.ConfidenceMetricsEntry
public static final class ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
implements ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder
Metrics for a single confidence threshold.Protobuf type
google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.floatOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatOutput only.floatOutput only.longOutput only.longOutput only.floatOutput only.floatOutput only.intOutput only.floatOutput only.floatOutput only.floatOutput only.floatOutput only.longOutput only.longOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setConfidenceThreshold(float value) Output only.setF1Score(float value) Output only.setF1ScoreAt1(float value) Output only.setFalseNegativeCount(long value) Output only.setFalsePositiveCount(long value) Output only.setFalsePositiveRate(float value) Output only.setFalsePositiveRateAt1(float value) Output only.setPositionThreshold(int value) Output only.setPrecision(float value) Output only.setPrecisionAt1(float value) Output only.setRecall(float value) Output only.setRecallAt1(float value) Output only.setTrueNegativeCount(long value) Output only.setTruePositiveCount(long value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
mergeFrom
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>- Throws:
IOException
-
getConfidenceThreshold
public float getConfidenceThreshold()Output only. Metrics are computed with an assumption that the model never returns predictions with score lower than this value.
float confidence_threshold = 1;- Specified by:
getConfidenceThresholdin interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The confidenceThreshold.
-
setConfidenceThreshold
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setConfidenceThreshold(float value) Output only. Metrics are computed with an assumption that the model never returns predictions with score lower than this value.
float confidence_threshold = 1;- Parameters:
value- The confidenceThreshold to set.- Returns:
- This builder for chaining.
-
clearConfidenceThreshold
Output only. Metrics are computed with an assumption that the model never returns predictions with score lower than this value.
float confidence_threshold = 1;- Returns:
- This builder for chaining.
-
getPositionThreshold
public int getPositionThreshold()Output only. Metrics are computed with an assumption that the model always returns at most this many predictions (ordered by their score, descendingly), but they all still need to meet the confidence_threshold.
int32 position_threshold = 14;- Specified by:
getPositionThresholdin interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The positionThreshold.
-
setPositionThreshold
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setPositionThreshold(int value) Output only. Metrics are computed with an assumption that the model always returns at most this many predictions (ordered by their score, descendingly), but they all still need to meet the confidence_threshold.
int32 position_threshold = 14;- Parameters:
value- The positionThreshold to set.- Returns:
- This builder for chaining.
-
clearPositionThreshold
Output only. Metrics are computed with an assumption that the model always returns at most this many predictions (ordered by their score, descendingly), but they all still need to meet the confidence_threshold.
int32 position_threshold = 14;- Returns:
- This builder for chaining.
-
getRecall
public float getRecall()Output only. Recall (True Positive Rate) for the given confidence threshold.
float recall = 2;- Specified by:
getRecallin interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The recall.
-
setRecall
Output only. Recall (True Positive Rate) for the given confidence threshold.
float recall = 2;- Parameters:
value- The recall to set.- Returns:
- This builder for chaining.
-
clearRecall
Output only. Recall (True Positive Rate) for the given confidence threshold.
float recall = 2;- Returns:
- This builder for chaining.
-
getPrecision
public float getPrecision()Output only. Precision for the given confidence threshold.
float precision = 3;- Specified by:
getPrecisionin interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The precision.
-
setPrecision
Output only. Precision for the given confidence threshold.
float precision = 3;- Parameters:
value- The precision to set.- Returns:
- This builder for chaining.
-
clearPrecision
Output only. Precision for the given confidence threshold.
float precision = 3;- Returns:
- This builder for chaining.
-
getFalsePositiveRate
public float getFalsePositiveRate()Output only. False Positive Rate for the given confidence threshold.
float false_positive_rate = 8;- Specified by:
getFalsePositiveRatein interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The falsePositiveRate.
-
setFalsePositiveRate
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setFalsePositiveRate(float value) Output only. False Positive Rate for the given confidence threshold.
float false_positive_rate = 8;- Parameters:
value- The falsePositiveRate to set.- Returns:
- This builder for chaining.
-
clearFalsePositiveRate
Output only. False Positive Rate for the given confidence threshold.
float false_positive_rate = 8;- Returns:
- This builder for chaining.
-
getF1Score
public float getF1Score()Output only. The harmonic mean of recall and precision.
float f1_score = 4;- Specified by:
getF1Scorein interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The f1Score.
-
setF1Score
Output only. The harmonic mean of recall and precision.
float f1_score = 4;- Parameters:
value- The f1Score to set.- Returns:
- This builder for chaining.
-
clearF1Score
Output only. The harmonic mean of recall and precision.
float f1_score = 4;- Returns:
- This builder for chaining.
-
getRecallAt1
public float getRecallAt1()Output only. The Recall (True Positive Rate) when only considering the label that has the highest prediction score and not below the confidence threshold for each example.
float recall_at1 = 5;- Specified by:
getRecallAt1in interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The recallAt1.
-
setRecallAt1
Output only. The Recall (True Positive Rate) when only considering the label that has the highest prediction score and not below the confidence threshold for each example.
float recall_at1 = 5;- Parameters:
value- The recallAt1 to set.- Returns:
- This builder for chaining.
-
clearRecallAt1
Output only. The Recall (True Positive Rate) when only considering the label that has the highest prediction score and not below the confidence threshold for each example.
float recall_at1 = 5;- Returns:
- This builder for chaining.
-
getPrecisionAt1
public float getPrecisionAt1()Output only. The precision when only considering the label that has the highest prediction score and not below the confidence threshold for each example.
float precision_at1 = 6;- Specified by:
getPrecisionAt1in interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The precisionAt1.
-
setPrecisionAt1
Output only. The precision when only considering the label that has the highest prediction score and not below the confidence threshold for each example.
float precision_at1 = 6;- Parameters:
value- The precisionAt1 to set.- Returns:
- This builder for chaining.
-
clearPrecisionAt1
Output only. The precision when only considering the label that has the highest prediction score and not below the confidence threshold for each example.
float precision_at1 = 6;- Returns:
- This builder for chaining.
-
getFalsePositiveRateAt1
public float getFalsePositiveRateAt1()Output only. The False Positive Rate when only considering the label that has the highest prediction score and not below the confidence threshold for each example.
float false_positive_rate_at1 = 9;- Specified by:
getFalsePositiveRateAt1in interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The falsePositiveRateAt1.
-
setFalsePositiveRateAt1
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setFalsePositiveRateAt1(float value) Output only. The False Positive Rate when only considering the label that has the highest prediction score and not below the confidence threshold for each example.
float false_positive_rate_at1 = 9;- Parameters:
value- The falsePositiveRateAt1 to set.- Returns:
- This builder for chaining.
-
clearFalsePositiveRateAt1
Output only. The False Positive Rate when only considering the label that has the highest prediction score and not below the confidence threshold for each example.
float false_positive_rate_at1 = 9;- Returns:
- This builder for chaining.
-
getF1ScoreAt1
public float getF1ScoreAt1()Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
float f1_score_at1 = 7;- Specified by:
getF1ScoreAt1in interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The f1ScoreAt1.
-
setF1ScoreAt1
Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
float f1_score_at1 = 7;- Parameters:
value- The f1ScoreAt1 to set.- Returns:
- This builder for chaining.
-
clearF1ScoreAt1
Output only. The harmonic mean of [recall_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry.precision_at1].
float f1_score_at1 = 7;- Returns:
- This builder for chaining.
-
getTruePositiveCount
public long getTruePositiveCount()Output only. The number of model created labels that match a ground truth label.
int64 true_positive_count = 10;- Specified by:
getTruePositiveCountin interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The truePositiveCount.
-
setTruePositiveCount
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setTruePositiveCount(long value) Output only. The number of model created labels that match a ground truth label.
int64 true_positive_count = 10;- Parameters:
value- The truePositiveCount to set.- Returns:
- This builder for chaining.
-
clearTruePositiveCount
Output only. The number of model created labels that match a ground truth label.
int64 true_positive_count = 10;- Returns:
- This builder for chaining.
-
getFalsePositiveCount
public long getFalsePositiveCount()Output only. The number of model created labels that do not match a ground truth label.
int64 false_positive_count = 11;- Specified by:
getFalsePositiveCountin interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The falsePositiveCount.
-
setFalsePositiveCount
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setFalsePositiveCount(long value) Output only. The number of model created labels that do not match a ground truth label.
int64 false_positive_count = 11;- Parameters:
value- The falsePositiveCount to set.- Returns:
- This builder for chaining.
-
clearFalsePositiveCount
Output only. The number of model created labels that do not match a ground truth label.
int64 false_positive_count = 11;- Returns:
- This builder for chaining.
-
getFalseNegativeCount
public long getFalseNegativeCount()Output only. The number of ground truth labels that are not matched by a model created label.
int64 false_negative_count = 12;- Specified by:
getFalseNegativeCountin interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The falseNegativeCount.
-
setFalseNegativeCount
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setFalseNegativeCount(long value) Output only. The number of ground truth labels that are not matched by a model created label.
int64 false_negative_count = 12;- Parameters:
value- The falseNegativeCount to set.- Returns:
- This builder for chaining.
-
clearFalseNegativeCount
Output only. The number of ground truth labels that are not matched by a model created label.
int64 false_negative_count = 12;- Returns:
- This builder for chaining.
-
getTrueNegativeCount
public long getTrueNegativeCount()Output only. The number of labels that were not created by the model, but if they would, they would not match a ground truth label.
int64 true_negative_count = 13;- Specified by:
getTrueNegativeCountin interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The trueNegativeCount.
-
setTrueNegativeCount
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setTrueNegativeCount(long value) Output only. The number of labels that were not created by the model, but if they would, they would not match a ground truth label.
int64 true_negative_count = 13;- Parameters:
value- The trueNegativeCount to set.- Returns:
- This builder for chaining.
-
clearTrueNegativeCount
Output only. The number of labels that were not created by the model, but if they would, they would not match a ground truth label.
int64 true_negative_count = 13;- Returns:
- This builder for chaining.
-