public final class ConfusionMatrix extends GeneratedMessageV3 implements ConfusionMatrixOrBuilder
Confusion matrix of the model running the classification. Only applicable
when the metrics entry aggregates multiple labels. Not applicable when the
entry is for a single label.
Protobuf type google.cloud.datalabeling.v1beta1.ConfusionMatrix
Static Fields
ROW_FIELD_NUMBER
public static final int ROW_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ConfusionMatrix getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ConfusionMatrix.Builder newBuilder()
Returns
newBuilder(ConfusionMatrix prototype)
public static ConfusionMatrix.Builder newBuilder(ConfusionMatrix prototype)
Parameter
Returns
public static ConfusionMatrix parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConfusionMatrix parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ConfusionMatrix parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConfusionMatrix parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ConfusionMatrix parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConfusionMatrix parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConfusionMatrix parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ConfusionMatrix parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConfusionMatrix parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConfusionMatrix parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ConfusionMatrix parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConfusionMatrix parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ConfusionMatrix> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ConfusionMatrix getDefaultInstanceForType()
Returns
getParserForType()
public Parser<ConfusionMatrix> getParserForType()
Returns
Overrides
getRow(int index)
public ConfusionMatrix.Row getRow(int index)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter
Returns
getRowCount()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Returns
getRowList()
public List<ConfusionMatrix.Row> getRowList()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Returns
getRowOrBuilder(int index)
public ConfusionMatrix.RowOrBuilder getRowOrBuilder(int index)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter
Returns
getRowOrBuilderList()
public List<? extends ConfusionMatrix.RowOrBuilder> getRowOrBuilderList()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Returns
Type | Description |
List<? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ConfusionMatrix.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ConfusionMatrix.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ConfusionMatrix.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions