public final class ClassificationMetrics extends GeneratedMessageV3 implements ClassificationMetricsOrBuilder
Metrics calculated for a classification model.
Protobuf type google.cloud.datalabeling.v1beta1.ClassificationMetrics
Static Fields
CONFUSION_MATRIX_FIELD_NUMBER
public static final int CONFUSION_MATRIX_FIELD_NUMBER
Field Value
PR_CURVE_FIELD_NUMBER
public static final int PR_CURVE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ClassificationMetrics getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ClassificationMetrics.Builder newBuilder()
Returns
newBuilder(ClassificationMetrics prototype)
public static ClassificationMetrics.Builder newBuilder(ClassificationMetrics prototype)
Parameter
Returns
public static ClassificationMetrics parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ClassificationMetrics parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ClassificationMetrics parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ClassificationMetrics parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ClassificationMetrics parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ClassificationMetrics parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ClassificationMetrics parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ClassificationMetrics parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ClassificationMetrics parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ClassificationMetrics parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ClassificationMetrics parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ClassificationMetrics parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ClassificationMetrics> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getConfusionMatrix()
public ConfusionMatrix getConfusionMatrix()
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
getParserForType()
public Parser<ClassificationMetrics> getParserForType()
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
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
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ClassificationMetrics.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ClassificationMetrics.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ClassificationMetrics.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions