Class PrCurve.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PrCurve.Builder>
com.google.cloud.datalabeling.v1beta1.PrCurve.Builder
- All Implemented Interfaces:
PrCurveOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PrCurve
public static final class PrCurve.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PrCurve.Builder>
implements PrCurveOrBuilder
Protobuf type
google.cloud.datalabeling.v1beta1.PrCurve-
Method Summary
Modifier and TypeMethodDescriptionaddAllConfidenceMetricsEntries(Iterable<? extends PrCurve.ConfidenceMetricsEntry> values) Entries that make up the precision-recall graph.addConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry value) Entries that make up the precision-recall graph.addConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry.Builder builderForValue) Entries that make up the precision-recall graph.Entries that make up the precision-recall graph.addConfidenceMetricsEntries(PrCurve.ConfidenceMetricsEntry.Builder builderForValue) Entries that make up the precision-recall graph.Entries that make up the precision-recall graph.addConfidenceMetricsEntriesBuilder(int index) Entries that make up the precision-recall graph.build()clear()The annotation spec of the label for which the precision-recall curve calculated.Area under the precision-recall curve.Entries that make up the precision-recall graph.Mean average prcision of this curve.The annotation spec of the label for which the precision-recall curve calculated.The annotation spec of the label for which the precision-recall curve calculated.The annotation spec of the label for which the precision-recall curve calculated.floatArea under the precision-recall curve.getConfidenceMetricsEntries(int index) Entries that make up the precision-recall graph.getConfidenceMetricsEntriesBuilder(int index) Entries that make up the precision-recall graph.Entries that make up the precision-recall graph.intEntries that make up the precision-recall graph.Entries that make up the precision-recall graph.getConfidenceMetricsEntriesOrBuilder(int index) Entries that make up the precision-recall graph.List<? extends PrCurve.ConfidenceMetricsEntryOrBuilder>Entries that make up the precision-recall graph.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatMean average prcision of this curve.booleanThe annotation spec of the label for which the precision-recall curve calculated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe annotation spec of the label for which the precision-recall curve calculated.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeConfidenceMetricsEntries(int index) Entries that make up the precision-recall graph.setAnnotationSpec(AnnotationSpec value) The annotation spec of the label for which the precision-recall curve calculated.setAnnotationSpec(AnnotationSpec.Builder builderForValue) The annotation spec of the label for which the precision-recall curve calculated.setAreaUnderCurve(float value) Area under the precision-recall curve.setConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry value) Entries that make up the precision-recall graph.setConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry.Builder builderForValue) Entries that make up the precision-recall graph.setMeanAveragePrecision(float value) Mean average prcision of this curve.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.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.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.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.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PrCurve.Builder>
-
mergeFrom
public PrCurve.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.Builder>- Throws:
IOException
-
hasAnnotationSpec
public boolean hasAnnotationSpec()The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;- Specified by:
hasAnnotationSpecin interfacePrCurveOrBuilder- Returns:
- Whether the annotationSpec field is set.
-
getAnnotationSpec
The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;- Specified by:
getAnnotationSpecin interfacePrCurveOrBuilder- Returns:
- The annotationSpec.
-
setAnnotationSpec
The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; -
setAnnotationSpec
The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; -
mergeAnnotationSpec
The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; -
clearAnnotationSpec
The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; -
getAnnotationSpecBuilder
The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; -
getAnnotationSpecOrBuilder
The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;- Specified by:
getAnnotationSpecOrBuilderin interfacePrCurveOrBuilder
-
getAreaUnderCurve
public float getAreaUnderCurve()Area under the precision-recall curve. Not to be confused with area under a receiver operating characteristic (ROC) curve.
float area_under_curve = 2;- Specified by:
getAreaUnderCurvein interfacePrCurveOrBuilder- Returns:
- The areaUnderCurve.
-
setAreaUnderCurve
Area under the precision-recall curve. Not to be confused with area under a receiver operating characteristic (ROC) curve.
float area_under_curve = 2;- Parameters:
value- The areaUnderCurve to set.- Returns:
- This builder for chaining.
-
clearAreaUnderCurve
Area under the precision-recall curve. Not to be confused with area under a receiver operating characteristic (ROC) curve.
float area_under_curve = 2;- Returns:
- This builder for chaining.
-
getConfidenceMetricsEntriesList
Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;- Specified by:
getConfidenceMetricsEntriesListin interfacePrCurveOrBuilder
-
getConfidenceMetricsEntriesCount
public int getConfidenceMetricsEntriesCount()Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;- Specified by:
getConfidenceMetricsEntriesCountin interfacePrCurveOrBuilder
-
getConfidenceMetricsEntries
Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;- Specified by:
getConfidenceMetricsEntriesin interfacePrCurveOrBuilder
-
setConfidenceMetricsEntries
Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; -
setConfidenceMetricsEntries
public PrCurve.Builder setConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry.Builder builderForValue) Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; -
addConfidenceMetricsEntries
Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; -
addConfidenceMetricsEntries
Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; -
addConfidenceMetricsEntries
public PrCurve.Builder addConfidenceMetricsEntries(PrCurve.ConfidenceMetricsEntry.Builder builderForValue) Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; -
addConfidenceMetricsEntries
public PrCurve.Builder addConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry.Builder builderForValue) Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; -
addAllConfidenceMetricsEntries
public PrCurve.Builder addAllConfidenceMetricsEntries(Iterable<? extends PrCurve.ConfidenceMetricsEntry> values) Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; -
clearConfidenceMetricsEntries
Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; -
removeConfidenceMetricsEntries
Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; -
getConfidenceMetricsEntriesBuilder
Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; -
getConfidenceMetricsEntriesOrBuilder
Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;- Specified by:
getConfidenceMetricsEntriesOrBuilderin interfacePrCurveOrBuilder
-
getConfidenceMetricsEntriesOrBuilderList
public List<? extends PrCurve.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesOrBuilderList()Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;- Specified by:
getConfidenceMetricsEntriesOrBuilderListin interfacePrCurveOrBuilder
-
addConfidenceMetricsEntriesBuilder
Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; -
addConfidenceMetricsEntriesBuilder
Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; -
getConfidenceMetricsEntriesBuilderList
Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different `confidence_threshold`.
repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; -
getMeanAveragePrecision
public float getMeanAveragePrecision()Mean average prcision of this curve.
float mean_average_precision = 4;- Specified by:
getMeanAveragePrecisionin interfacePrCurveOrBuilder- Returns:
- The meanAveragePrecision.
-
setMeanAveragePrecision
Mean average prcision of this curve.
float mean_average_precision = 4;- Parameters:
value- The meanAveragePrecision to set.- Returns:
- This builder for chaining.
-
clearMeanAveragePrecision
Mean average prcision of this curve.
float mean_average_precision = 4;- Returns:
- This builder for chaining.
-