Class PrCurve.ConfidenceMetricsEntry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PrCurve.ConfidenceMetricsEntry.Builder>
com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder
- All Implemented Interfaces:
PrCurve.ConfidenceMetricsEntryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PrCurve.ConfidenceMetricsEntry
public static final class PrCurve.ConfidenceMetricsEntry.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PrCurve.ConfidenceMetricsEntry.Builder>
implements PrCurve.ConfidenceMetricsEntryOrBuilder
Protobuf type
google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Threshold used for this entry.Harmonic mean of recall and precision.The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].Precision value.Precision value for entries with label that has highest score.Precision value for entries with label that has highest 5 scores.Recall value.Recall value for entries with label that has highest score.Recall value for entries with label that has highest 5 scores.floatThreshold used for this entry.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatHarmonic mean of recall and precision.floatThe harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].floatThe harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].floatPrecision value.floatPrecision value for entries with label that has highest score.floatPrecision value for entries with label that has highest 5 scores.floatRecall value.floatRecall value for entries with label that has highest score.floatRecall value for entries with label that has highest 5 scores.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) Threshold used for this entry.setF1Score(float value) Harmonic mean of recall and precision.setF1ScoreAt1(float value) The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].setF1ScoreAt5(float value) The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].setPrecision(float value) Precision value.setPrecisionAt1(float value) Precision value for entries with label that has highest score.setPrecisionAt5(float value) Precision value for entries with label that has highest 5 scores.setRecall(float value) Recall value.setRecallAt1(float value) Recall value for entries with label that has highest score.setRecallAt5(float value) Recall value for entries with label that has highest 5 scores.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<PrCurve.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<PrCurve.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<PrCurve.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PrCurve.ConfidenceMetricsEntry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PrCurve.ConfidenceMetricsEntry.Builder>
-
mergeFrom
public PrCurve.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<PrCurve.ConfidenceMetricsEntry.Builder>- Throws:
IOException
-
getConfidenceThreshold
public float getConfidenceThreshold()Threshold used for this entry. For classification tasks, this is a classification threshold: a predicted label is categorized as positive or negative (in the context of this point on the PR curve) based on whether the label's score meets this threshold. For image object detection (bounding box) tasks, this is the [intersection-over-union (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) threshold for the context of this point on the PR curve.
float confidence_threshold = 1;- Specified by:
getConfidenceThresholdin interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The confidenceThreshold.
-
setConfidenceThreshold
Threshold used for this entry. For classification tasks, this is a classification threshold: a predicted label is categorized as positive or negative (in the context of this point on the PR curve) based on whether the label's score meets this threshold. For image object detection (bounding box) tasks, this is the [intersection-over-union (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) threshold for the context of this point on the PR curve.
float confidence_threshold = 1;- Parameters:
value- The confidenceThreshold to set.- Returns:
- This builder for chaining.
-
clearConfidenceThreshold
Threshold used for this entry. For classification tasks, this is a classification threshold: a predicted label is categorized as positive or negative (in the context of this point on the PR curve) based on whether the label's score meets this threshold. For image object detection (bounding box) tasks, this is the [intersection-over-union (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) threshold for the context of this point on the PR curve.
float confidence_threshold = 1;- Returns:
- This builder for chaining.
-
getRecall
public float getRecall()Recall value.
float recall = 2;- Specified by:
getRecallin interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The recall.
-
setRecall
Recall value.
float recall = 2;- Parameters:
value- The recall to set.- Returns:
- This builder for chaining.
-
clearRecall
Recall value.
float recall = 2;- Returns:
- This builder for chaining.
-
getPrecision
public float getPrecision()Precision value.
float precision = 3;- Specified by:
getPrecisionin interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The precision.
-
setPrecision
Precision value.
float precision = 3;- Parameters:
value- The precision to set.- Returns:
- This builder for chaining.
-
clearPrecision
Precision value.
float precision = 3;- Returns:
- This builder for chaining.
-
getF1Score
public float getF1Score()Harmonic mean of recall and precision.
float f1_score = 4;- Specified by:
getF1Scorein interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The f1Score.
-
setF1Score
Harmonic mean of recall and precision.
float f1_score = 4;- Parameters:
value- The f1Score to set.- Returns:
- This builder for chaining.
-
clearF1Score
Harmonic mean of recall and precision.
float f1_score = 4;- Returns:
- This builder for chaining.
-
getRecallAt1
public float getRecallAt1()Recall value for entries with label that has highest score.
float recall_at1 = 5;- Specified by:
getRecallAt1in interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The recallAt1.
-
setRecallAt1
Recall value for entries with label that has highest score.
float recall_at1 = 5;- Parameters:
value- The recallAt1 to set.- Returns:
- This builder for chaining.
-
clearRecallAt1
Recall value for entries with label that has highest score.
float recall_at1 = 5;- Returns:
- This builder for chaining.
-
getPrecisionAt1
public float getPrecisionAt1()Precision value for entries with label that has highest score.
float precision_at1 = 6;- Specified by:
getPrecisionAt1in interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The precisionAt1.
-
setPrecisionAt1
Precision value for entries with label that has highest score.
float precision_at1 = 6;- Parameters:
value- The precisionAt1 to set.- Returns:
- This builder for chaining.
-
clearPrecisionAt1
Precision value for entries with label that has highest score.
float precision_at1 = 6;- Returns:
- This builder for chaining.
-
getF1ScoreAt1
public float getF1ScoreAt1()The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
float f1_score_at1 = 7;- Specified by:
getF1ScoreAt1in interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The f1ScoreAt1.
-
setF1ScoreAt1
The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
float f1_score_at1 = 7;- Parameters:
value- The f1ScoreAt1 to set.- Returns:
- This builder for chaining.
-
clearF1ScoreAt1
The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
float f1_score_at1 = 7;- Returns:
- This builder for chaining.
-
getRecallAt5
public float getRecallAt5()Recall value for entries with label that has highest 5 scores.
float recall_at5 = 8;- Specified by:
getRecallAt5in interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The recallAt5.
-
setRecallAt5
Recall value for entries with label that has highest 5 scores.
float recall_at5 = 8;- Parameters:
value- The recallAt5 to set.- Returns:
- This builder for chaining.
-
clearRecallAt5
Recall value for entries with label that has highest 5 scores.
float recall_at5 = 8;- Returns:
- This builder for chaining.
-
getPrecisionAt5
public float getPrecisionAt5()Precision value for entries with label that has highest 5 scores.
float precision_at5 = 9;- Specified by:
getPrecisionAt5in interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The precisionAt5.
-
setPrecisionAt5
Precision value for entries with label that has highest 5 scores.
float precision_at5 = 9;- Parameters:
value- The precisionAt5 to set.- Returns:
- This builder for chaining.
-
clearPrecisionAt5
Precision value for entries with label that has highest 5 scores.
float precision_at5 = 9;- Returns:
- This builder for chaining.
-
getF1ScoreAt5
public float getF1ScoreAt5()The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
float f1_score_at5 = 10;- Specified by:
getF1ScoreAt5in interfacePrCurve.ConfidenceMetricsEntryOrBuilder- Returns:
- The f1ScoreAt5.
-
setF1ScoreAt5
The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
float f1_score_at5 = 10;- Parameters:
value- The f1ScoreAt5 to set.- Returns:
- This builder for chaining.
-
clearF1ScoreAt5
The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
float f1_score_at5 = 10;- Returns:
- This builder for chaining.
-