Package com.google.cloud.automl.v1beta1
Class ClassificationProto.ClassificationEvaluationMetrics
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationEvaluationMetrics
-
- All Implemented Interfaces:
ClassificationProto.ClassificationEvaluationMetricsOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
- Enclosing class:
- ClassificationProto
public static final class ClassificationProto.ClassificationEvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 implements ClassificationProto.ClassificationEvaluationMetricsOrBuilder
Model evaluation metrics for classification problems. Note: For Video Classification this metrics only describe quality of the Video Classification predictions of "segment_classification" type.
Protobuf typegoogle.cloud.automl.v1beta1.ClassificationEvaluationMetrics
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClassificationProto.ClassificationEvaluationMetrics.Builder
Model evaluation metrics for classification problems.static class
ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry
Metrics for a single confidence threshold.static interface
ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder
static class
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix
Confusion matrix of the model running the classification.static interface
ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ANNOTATION_SPEC_ID_FIELD_NUMBER
static int
AU_PRC_FIELD_NUMBER
static int
AU_ROC_FIELD_NUMBER
static int
BASE_AU_PRC_FIELD_NUMBER
static int
CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER
static int
CONFUSION_MATRIX_FIELD_NUMBER
static int
LOG_LOSS_FIELD_NUMBER
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
AU_PRC_FIELD_NUMBER
public static final int AU_PRC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BASE_AU_PRC_FIELD_NUMBER
public static final int BASE_AU_PRC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AU_ROC_FIELD_NUMBER
public static final int AU_ROC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOG_LOSS_FIELD_NUMBER
public static final int LOG_LOSS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER
public static final int CONFIDENCE_METRICS_ENTRY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONFUSION_MATRIX_FIELD_NUMBER
public static final int CONFUSION_MATRIX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANNOTATION_SPEC_ID_FIELD_NUMBER
public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getAuPrc
public float getAuPrc()
Output only. The Area Under Precision-Recall Curve metric. Micro-averaged for the overall evaluation.
float au_prc = 1;
- Specified by:
getAuPrc
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
- Returns:
- The auPrc.
-
getBaseAuPrc
@Deprecated public float getBaseAuPrc()
Deprecated.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.base_au_prc is deprecated. See google/cloud/automl/v1beta1/classification.proto;l=188Output only. The Area Under Precision-Recall Curve metric based on priors. Micro-averaged for the overall evaluation. Deprecated.
float base_au_prc = 2 [deprecated = true];
- Specified by:
getBaseAuPrc
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
- Returns:
- The baseAuPrc.
-
getAuRoc
public float getAuRoc()
Output only. The Area Under Receiver Operating Characteristic curve metric. Micro-averaged for the overall evaluation.
float au_roc = 6;
- Specified by:
getAuRoc
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
- Returns:
- The auRoc.
-
getLogLoss
public float getLogLoss()
Output only. The Log Loss metric.
float log_loss = 7;
- Specified by:
getLogLoss
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
- Returns:
- The logLoss.
-
getConfidenceMetricsEntryList
public List<ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry> getConfidenceMetricsEntryList()
Output only. Metrics for each confidence_threshold in 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and position_threshold = INT32_MAX_VALUE. ROC and precision-recall curves, and other aggregated metrics are derived from them. The confidence metrics entries may also be supplied for additional values of position_threshold, but from these no aggregated metrics are computed.
repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
- Specified by:
getConfidenceMetricsEntryList
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
-
getConfidenceMetricsEntryOrBuilderList
public List<? extends ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntryOrBuilderList()
Output only. Metrics for each confidence_threshold in 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and position_threshold = INT32_MAX_VALUE. ROC and precision-recall curves, and other aggregated metrics are derived from them. The confidence metrics entries may also be supplied for additional values of position_threshold, but from these no aggregated metrics are computed.
repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
- Specified by:
getConfidenceMetricsEntryOrBuilderList
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
-
getConfidenceMetricsEntryCount
public int getConfidenceMetricsEntryCount()
Output only. Metrics for each confidence_threshold in 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and position_threshold = INT32_MAX_VALUE. ROC and precision-recall curves, and other aggregated metrics are derived from them. The confidence metrics entries may also be supplied for additional values of position_threshold, but from these no aggregated metrics are computed.
repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
- Specified by:
getConfidenceMetricsEntryCount
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
-
getConfidenceMetricsEntry
public ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntry(int index)
Output only. Metrics for each confidence_threshold in 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and position_threshold = INT32_MAX_VALUE. ROC and precision-recall curves, and other aggregated metrics are derived from them. The confidence metrics entries may also be supplied for additional values of position_threshold, but from these no aggregated metrics are computed.
repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
- Specified by:
getConfidenceMetricsEntry
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
-
getConfidenceMetricsEntryOrBuilder
public ClassificationProto.ClassificationEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntryOrBuilder(int index)
Output only. Metrics for each confidence_threshold in 0.00,0.05,0.10,...,0.95,0.96,0.97,0.98,0.99 and position_threshold = INT32_MAX_VALUE. ROC and precision-recall curves, and other aggregated metrics are derived from them. The confidence metrics entries may also be supplied for additional values of position_threshold, but from these no aggregated metrics are computed.
repeated .google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;
- Specified by:
getConfidenceMetricsEntryOrBuilder
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
-
hasConfusionMatrix
public boolean hasConfusionMatrix()
Output only. Confusion matrix of the evaluation. Only set for MULTICLASS classification problems where number of labels is no more than 10. Only set for model level evaluation, not for evaluation per label.
.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4;
- Specified by:
hasConfusionMatrix
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
- Returns:
- Whether the confusionMatrix field is set.
-
getConfusionMatrix
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrix getConfusionMatrix()
Output only. Confusion matrix of the evaluation. Only set for MULTICLASS classification problems where number of labels is no more than 10. Only set for model level evaluation, not for evaluation per label.
.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4;
- Specified by:
getConfusionMatrix
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
- Returns:
- The confusionMatrix.
-
getConfusionMatrixOrBuilder
public ClassificationProto.ClassificationEvaluationMetrics.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder()
Output only. Confusion matrix of the evaluation. Only set for MULTICLASS classification problems where number of labels is no more than 10. Only set for model level evaluation, not for evaluation per label.
.google.cloud.automl.v1beta1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4;
- Specified by:
getConfusionMatrixOrBuilder
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
-
getAnnotationSpecIdList
public com.google.protobuf.ProtocolStringList getAnnotationSpecIdList()
Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;
- Specified by:
getAnnotationSpecIdList
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
- Returns:
- A list containing the annotationSpecId.
-
getAnnotationSpecIdCount
public int getAnnotationSpecIdCount()
Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;
- Specified by:
getAnnotationSpecIdCount
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
- Returns:
- The count of annotationSpecId.
-
getAnnotationSpecId
public String getAnnotationSpecId(int index)
Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;
- Specified by:
getAnnotationSpecId
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The annotationSpecId at the given index.
-
getAnnotationSpecIdBytes
public com.google.protobuf.ByteString getAnnotationSpecIdBytes(int index)
Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;
- Specified by:
getAnnotationSpecIdBytes
in interfaceClassificationProto.ClassificationEvaluationMetricsOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the annotationSpecId at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ClassificationProto.ClassificationEvaluationMetrics parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ClassificationProto.ClassificationEvaluationMetrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ClassificationProto.ClassificationEvaluationMetrics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ClassificationProto.ClassificationEvaluationMetrics.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ClassificationProto.ClassificationEvaluationMetrics.Builder newBuilder()
-
newBuilder
public static ClassificationProto.ClassificationEvaluationMetrics.Builder newBuilder(ClassificationProto.ClassificationEvaluationMetrics prototype)
-
toBuilder
public ClassificationProto.ClassificationEvaluationMetrics.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ClassificationProto.ClassificationEvaluationMetrics.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ClassificationProto.ClassificationEvaluationMetrics getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ClassificationProto.ClassificationEvaluationMetrics> parser()
-
getParserForType
public com.google.protobuf.Parser<ClassificationProto.ClassificationEvaluationMetrics> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ClassificationProto.ClassificationEvaluationMetrics getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-