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