public static final class PrCurve.Builder extends GeneratedMessageV3.Builder<PrCurve.Builder> implements PrCurveOrBuilder
Protobuf type google.cloud.datalabeling.v1beta1.PrCurve
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllConfidenceMetricsEntries(Iterable<? extends PrCurve.ConfidenceMetricsEntry> values)
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;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry>
|
Returns
addConfidenceMetricsEntries(PrCurve.ConfidenceMetricsEntry value)
public PrCurve.Builder addConfidenceMetricsEntries(PrCurve.ConfidenceMetricsEntry value)
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;
Parameter
Returns
addConfidenceMetricsEntries(PrCurve.ConfidenceMetricsEntry.Builder builderForValue)
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;
Parameter
Returns
addConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry value)
public PrCurve.Builder addConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry value)
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;
Parameters
Returns
addConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry.Builder builderForValue)
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;
Parameters
Returns
addConfidenceMetricsEntriesBuilder()
public PrCurve.ConfidenceMetricsEntry.Builder 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;
Returns
addConfidenceMetricsEntriesBuilder(int index)
public PrCurve.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder(int index)
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;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PrCurve.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public PrCurve buildPartial()
Returns
clear()
public PrCurve.Builder clear()
Returns
Overrides
clearAnnotationSpec()
public PrCurve.Builder 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;
Returns
clearAreaUnderCurve()
public PrCurve.Builder 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
clearConfidenceMetricsEntries()
public PrCurve.Builder 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;
Returns
clearField(Descriptors.FieldDescriptor field)
public PrCurve.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMeanAveragePrecision()
public PrCurve.Builder clearMeanAveragePrecision()
Mean average prcision of this curve.
float mean_average_precision = 4;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public PrCurve.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public PrCurve.Builder clone()
Returns
Overrides
getAnnotationSpec()
public AnnotationSpec 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;
Returns
getAnnotationSpecBuilder()
public AnnotationSpec.Builder 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;
Returns
getAnnotationSpecOrBuilder()
public AnnotationSpecOrBuilder 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;
Returns
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;
Returns
Type | Description |
float | The areaUnderCurve.
|
getConfidenceMetricsEntries(int index)
public PrCurve.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index)
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;
Parameter
Returns
getConfidenceMetricsEntriesBuilder(int index)
public PrCurve.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntriesBuilder(int index)
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;
Parameter
Returns
getConfidenceMetricsEntriesBuilderList()
public List<PrCurve.ConfidenceMetricsEntry.Builder> 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;
Returns
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;
Returns
getConfidenceMetricsEntriesList()
public List<PrCurve.ConfidenceMetricsEntry> 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;
Returns
getConfidenceMetricsEntriesOrBuilder(int index)
public PrCurve.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder(int index)
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;
Parameter
Returns
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;
Returns
Type | Description |
List<? extends com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> | |
getDefaultInstanceForType()
public PrCurve getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMeanAveragePrecision()
public float getMeanAveragePrecision()
Mean average prcision of this curve.
float mean_average_precision = 4;
Returns
Type | Description |
float | The meanAveragePrecision.
|
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;
Returns
Type | Description |
boolean | Whether the annotationSpec field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeAnnotationSpec(AnnotationSpec value)
public PrCurve.Builder mergeAnnotationSpec(AnnotationSpec value)
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;
Parameter
Returns
mergeFrom(PrCurve other)
public PrCurve.Builder mergeFrom(PrCurve other)
Parameter
Returns
public PrCurve.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PrCurve.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PrCurve.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeConfidenceMetricsEntries(int index)
public PrCurve.Builder removeConfidenceMetricsEntries(int index)
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;
Parameter
Returns
setAnnotationSpec(AnnotationSpec value)
public PrCurve.Builder setAnnotationSpec(AnnotationSpec value)
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;
Parameter
Returns
setAnnotationSpec(AnnotationSpec.Builder builderForValue)
public PrCurve.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)
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;
Parameter
Returns
setAreaUnderCurve(float value)
public PrCurve.Builder setAreaUnderCurve(float value)
Area under the precision-recall curve. Not to be confused with area under
a receiver operating characteristic (ROC) curve.
float area_under_curve = 2;
Parameter
Name | Description |
value | float
The areaUnderCurve to set.
|
Returns
setConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry value)
public PrCurve.Builder setConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry value)
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;
Parameters
Returns
setConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry.Builder builderForValue)
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;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public PrCurve.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMeanAveragePrecision(float value)
public PrCurve.Builder setMeanAveragePrecision(float value)
Mean average prcision of this curve.
float mean_average_precision = 4;
Parameter
Name | Description |
value | float
The meanAveragePrecision to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PrCurve.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PrCurve.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides