Interface PrCurveOrBuilder (0.168.0)

public interface PrCurveOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAnnotationSpec()

public abstract 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
Type Description
AnnotationSpec

The annotationSpec.

getAnnotationSpecOrBuilder()

public abstract 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
Type Description
AnnotationSpecOrBuilder

getAreaUnderCurve()

public abstract 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 abstract 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
Name Description
index int
Returns
Type Description
PrCurve.ConfidenceMetricsEntry

getConfidenceMetricsEntriesCount()

public abstract 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
Type Description
int

getConfidenceMetricsEntriesList()

public abstract 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
Type Description
List<ConfidenceMetricsEntry>

getConfidenceMetricsEntriesOrBuilder(int index)

public abstract 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
Name Description
index int
Returns
Type Description
PrCurve.ConfidenceMetricsEntryOrBuilder

getConfidenceMetricsEntriesOrBuilderList()

public abstract 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>

getMeanAveragePrecision()

public abstract float getMeanAveragePrecision()

Mean average prcision of this curve.

float mean_average_precision = 4;

Returns
Type Description
float

The meanAveragePrecision.

hasAnnotationSpec()

public abstract 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.