Class ClassificationMetrics.Builder (0.165.0)

public static final class ClassificationMetrics.Builder extends GeneratedMessageV3.Builder<ClassificationMetrics.Builder> implements ClassificationMetricsOrBuilder

Metrics calculated for a classification model.

Protobuf type google.cloud.datalabeling.v1beta1.ClassificationMetrics

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ClassificationMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ClassificationMetrics.Builder
Overrides

build()

public ClassificationMetrics build()
Returns
Type Description
ClassificationMetrics

buildPartial()

public ClassificationMetrics buildPartial()
Returns
Type Description
ClassificationMetrics

clear()

public ClassificationMetrics.Builder clear()
Returns
Type Description
ClassificationMetrics.Builder
Overrides

clearConfusionMatrix()

public ClassificationMetrics.Builder clearConfusionMatrix()

Confusion matrix of predicted labels vs. ground truth labels.

.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;

Returns
Type Description
ClassificationMetrics.Builder

clearField(Descriptors.FieldDescriptor field)

public ClassificationMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ClassificationMetrics.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ClassificationMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ClassificationMetrics.Builder
Overrides

clearPrCurve()

public ClassificationMetrics.Builder clearPrCurve()

Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.

.google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;

Returns
Type Description
ClassificationMetrics.Builder

clone()

public ClassificationMetrics.Builder clone()
Returns
Type Description
ClassificationMetrics.Builder
Overrides

getConfusionMatrix()

public ConfusionMatrix getConfusionMatrix()

Confusion matrix of predicted labels vs. ground truth labels.

.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;

Returns
Type Description
ConfusionMatrix

The confusionMatrix.

getConfusionMatrixBuilder()

public ConfusionMatrix.Builder getConfusionMatrixBuilder()

Confusion matrix of predicted labels vs. ground truth labels.

.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;

Returns
Type Description
ConfusionMatrix.Builder

getConfusionMatrixOrBuilder()

public ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder()

Confusion matrix of predicted labels vs. ground truth labels.

.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;

Returns
Type Description
ConfusionMatrixOrBuilder

getDefaultInstanceForType()

public ClassificationMetrics getDefaultInstanceForType()
Returns
Type Description
ClassificationMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPrCurve()

public PrCurve getPrCurve()

Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.

.google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;

Returns
Type Description
PrCurve

The prCurve.

getPrCurveBuilder()

public PrCurve.Builder getPrCurveBuilder()

Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.

.google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;

Returns
Type Description
PrCurve.Builder

getPrCurveOrBuilder()

public PrCurveOrBuilder getPrCurveOrBuilder()

Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.

.google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;

Returns
Type Description
PrCurveOrBuilder

hasConfusionMatrix()

public boolean hasConfusionMatrix()

Confusion matrix of predicted labels vs. ground truth labels.

.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;

Returns
Type Description
boolean

Whether the confusionMatrix field is set.

hasPrCurve()

public boolean hasPrCurve()

Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.

.google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;

Returns
Type Description
boolean

Whether the prCurve field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConfusionMatrix(ConfusionMatrix value)

public ClassificationMetrics.Builder mergeConfusionMatrix(ConfusionMatrix value)

Confusion matrix of predicted labels vs. ground truth labels.

.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;

Parameter
Name Description
value ConfusionMatrix
Returns
Type Description
ClassificationMetrics.Builder

mergeFrom(ClassificationMetrics other)

public ClassificationMetrics.Builder mergeFrom(ClassificationMetrics other)
Parameter
Name Description
other ClassificationMetrics
Returns
Type Description
ClassificationMetrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ClassificationMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClassificationMetrics.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ClassificationMetrics.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ClassificationMetrics.Builder
Overrides

mergePrCurve(PrCurve value)

public ClassificationMetrics.Builder mergePrCurve(PrCurve value)

Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.

.google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;

Parameter
Name Description
value PrCurve
Returns
Type Description
ClassificationMetrics.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ClassificationMetrics.Builder
Overrides

setConfusionMatrix(ConfusionMatrix value)

public ClassificationMetrics.Builder setConfusionMatrix(ConfusionMatrix value)

Confusion matrix of predicted labels vs. ground truth labels.

.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;

Parameter
Name Description
value ConfusionMatrix
Returns
Type Description
ClassificationMetrics.Builder

setConfusionMatrix(ConfusionMatrix.Builder builderForValue)

public ClassificationMetrics.Builder setConfusionMatrix(ConfusionMatrix.Builder builderForValue)

Confusion matrix of predicted labels vs. ground truth labels.

.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;

Parameter
Name Description
builderForValue ConfusionMatrix.Builder
Returns
Type Description
ClassificationMetrics.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ClassificationMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ClassificationMetrics.Builder
Overrides

setPrCurve(PrCurve value)

public ClassificationMetrics.Builder setPrCurve(PrCurve value)

Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.

.google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;

Parameter
Name Description
value PrCurve
Returns
Type Description
ClassificationMetrics.Builder

setPrCurve(PrCurve.Builder builderForValue)

public ClassificationMetrics.Builder setPrCurve(PrCurve.Builder builderForValue)

Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.

.google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;

Parameter
Name Description
builderForValue PrCurve.Builder
Returns
Type Description
ClassificationMetrics.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ClassificationMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ClassificationMetrics.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ClassificationMetrics.Builder
Overrides