Class ClassificationMetrics.Builder (0.141.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ClassificationMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ClassificationMetrics.Builder
Overrides

build()

public ClassificationMetrics build()
Returns
TypeDescription
ClassificationMetrics

buildPartial()

public ClassificationMetrics buildPartial()
Returns
TypeDescription
ClassificationMetrics

clear()

public ClassificationMetrics.Builder clear()
Returns
TypeDescription
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
TypeDescription
ClassificationMetrics.Builder

clearField(Descriptors.FieldDescriptor field)

public ClassificationMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ClassificationMetrics.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ClassificationMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ClassificationMetrics.Builder

clone()

public ClassificationMetrics.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ConfusionMatrix.Builder

getConfusionMatrixOrBuilder()

public ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder()

Confusion matrix of predicted labels vs. ground truth labels.

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

Returns
TypeDescription
ConfusionMatrixOrBuilder

getDefaultInstanceForType()

public ClassificationMetrics getDefaultInstanceForType()
Returns
TypeDescription
ClassificationMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PrCurveOrBuilder

hasConfusionMatrix()

public boolean hasConfusionMatrix()

Confusion matrix of predicted labels vs. ground truth labels.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the prCurve field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueConfusionMatrix
Returns
TypeDescription
ClassificationMetrics.Builder

mergeFrom(ClassificationMetrics other)

public ClassificationMetrics.Builder mergeFrom(ClassificationMetrics other)
Parameter
NameDescription
otherClassificationMetrics
Returns
TypeDescription
ClassificationMetrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ClassificationMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationMetrics.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ClassificationMetrics.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePrCurve
Returns
TypeDescription
ClassificationMetrics.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueConfusionMatrix
Returns
TypeDescription
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
NameDescription
builderForValueConfusionMatrix.Builder
Returns
TypeDescription
ClassificationMetrics.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ClassificationMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuePrCurve
Returns
TypeDescription
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
NameDescription
builderForValuePrCurve.Builder
Returns
TypeDescription
ClassificationMetrics.Builder

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

public ClassificationMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ClassificationMetrics.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ClassificationMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ClassificationMetrics.Builder
Overrides