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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder> implements ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder
Metrics for a single confidence threshold.
Protobuf typegoogle.cloud.automl.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
clear
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
getDefaultInstanceForType
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
setField
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
clearField
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
clearOneof
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
setRepeatedField
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
addRepeatedField
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
mergeFrom
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
mergeFrom
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeFrom(ClassificationEvaluationMetrics.ConfidenceMetricsEntry other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
mergeFrom
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getConfidenceThreshold
in 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
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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:
getPositionThreshold
in 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
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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:
getRecall
in interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder
- Returns:
- The recall.
-
setRecall
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setRecall(float value)
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
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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:
getPrecision
in interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder
- Returns:
- The precision.
-
setPrecision
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setPrecision(float value)
Output only. Precision for the given confidence threshold.
float precision = 3;
- Parameters:
value
- The precision to set.- Returns:
- This builder for chaining.
-
clearPrecision
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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:
getFalsePositiveRate
in 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
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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:
getF1Score
in interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder
- Returns:
- The f1Score.
-
setF1Score
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setF1Score(float value)
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
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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:
getRecallAt1
in interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder
- Returns:
- The recallAt1.
-
setRecallAt1
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setRecallAt1(float value)
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
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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:
getPrecisionAt1
in interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder
- Returns:
- The precisionAt1.
-
setPrecisionAt1
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setPrecisionAt1(float value)
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
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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:
getFalsePositiveRateAt1
in 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
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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:
getF1ScoreAt1
in interfaceClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder
- Returns:
- The f1ScoreAt1.
-
setF1ScoreAt1
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setF1ScoreAt1(float value)
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
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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:
getTruePositiveCount
in 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
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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:
getFalsePositiveCount
in 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
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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:
getFalseNegativeCount
in 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
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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:
getTrueNegativeCount
in 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
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder 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.
-
setUnknownFields
public final ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
mergeUnknownFields
public final ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
-