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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ClassificationMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ClassificationMetrics build()
Returns
buildPartial()
public ClassificationMetrics buildPartial()
Returns
clear()
public ClassificationMetrics.Builder clear()
Returns
Overrides
clearConfusionMatrix()
public ClassificationMetrics.Builder clearConfusionMatrix()
Confusion matrix of predicted labels vs. ground truth labels.
.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public ClassificationMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ClassificationMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public ClassificationMetrics.Builder clone()
Returns
Overrides
getConfusionMatrix()
public ConfusionMatrix getConfusionMatrix()
Confusion matrix of predicted labels vs. ground truth labels.
.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;
Returns
getConfusionMatrixBuilder()
public ConfusionMatrix.Builder getConfusionMatrixBuilder()
Confusion matrix of predicted labels vs. ground truth labels.
.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;
Returns
getConfusionMatrixOrBuilder()
public ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder()
Confusion matrix of predicted labels vs. ground truth labels.
.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;
Returns
getDefaultInstanceForType()
public ClassificationMetrics getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(ClassificationMetrics other)
public ClassificationMetrics.Builder mergeFrom(ClassificationMetrics other)
Parameter
Returns
public ClassificationMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ClassificationMetrics.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ClassificationMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ClassificationMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides