Class ClassificationMetrics (0.148.0)

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
TypeDescription
int

PR_CURVE_FIELD_NUMBER

public static final int PR_CURVE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ClassificationMetrics getDefaultInstance()
Returns
TypeDescription
ClassificationMetrics

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ClassificationMetrics.Builder newBuilder()
Returns
TypeDescription
ClassificationMetrics.Builder

newBuilder(ClassificationMetrics prototype)

public static ClassificationMetrics.Builder newBuilder(ClassificationMetrics prototype)
Parameter
NameDescription
prototypeClassificationMetrics
Returns
TypeDescription
ClassificationMetrics.Builder

parseDelimitedFrom(InputStream input)

public static ClassificationMetrics parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ClassificationMetrics
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassificationMetrics parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationMetrics
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ClassificationMetrics parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ClassificationMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ClassificationMetrics parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ClassificationMetrics parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ClassificationMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ClassificationMetrics parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ClassificationMetrics parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ClassificationMetrics
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassificationMetrics parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationMetrics
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ClassificationMetrics parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ClassificationMetrics
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ClassificationMetrics parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationMetrics
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ClassificationMetrics parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ClassificationMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ClassificationMetrics parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClassificationMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ClassificationMetrics> parser()
Returns
TypeDescription
Parser<ClassificationMetrics>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

getParserForType()

public Parser<ClassificationMetrics> getParserForType()
Returns
TypeDescription
Parser<ClassificationMetrics>
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.

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ClassificationMetrics.Builder newBuilderForType()
Returns
TypeDescription
ClassificationMetrics.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ClassificationMetrics.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ClassificationMetrics.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ClassificationMetrics.Builder toBuilder()
Returns
TypeDescription
ClassificationMetrics.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException