Package com.google.cloud.automl.v1
Class ClassificationEvaluationMetrics.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.Builder>
com.google.cloud.automl.v1.ClassificationEvaluationMetrics.Builder
- All Implemented Interfaces:
ClassificationEvaluationMetricsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ClassificationEvaluationMetrics
public static final class ClassificationEvaluationMetrics.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.Builder>
implements 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 type
google.cloud.automl.v1.ClassificationEvaluationMetrics-
Method Summary
Modifier and TypeMethodDescriptionaddAllAnnotationSpecId(Iterable<String> values) Output only.addAllConfidenceMetricsEntry(Iterable<? extends ClassificationEvaluationMetrics.ConfidenceMetricsEntry> values) Output only.addAnnotationSpecId(String value) Output only.addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) Output only.Output only.addConfidenceMetricsEntry(int index, ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) Output only.Output only.addConfidenceMetricsEntry(ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) Output only.Output only.addConfidenceMetricsEntryBuilder(int index) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.Output only.getAnnotationSpecId(int index) Output only.com.google.protobuf.ByteStringgetAnnotationSpecIdBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.floatgetAuPrc()Output only.floatgetAuRoc()Output only.getConfidenceMetricsEntry(int index) Output only.getConfidenceMetricsEntryBuilder(int index) Output only.Output only.intOutput only.Output only.getConfidenceMetricsEntryOrBuilder(int index) Output only.Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOutput only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeConfidenceMetricsEntry(int index) Output only.setAnnotationSpecId(int index, String value) Output only.setAuPrc(float value) Output only.setAuRoc(float value) Output only.Output only.setConfidenceMetricsEntry(int index, ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) Output only.Output only.Output only.setLogLoss(float value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClassificationEvaluationMetrics.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ClassificationEvaluationMetrics.Builder>
-
mergeFrom
public ClassificationEvaluationMetrics.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClassificationEvaluationMetrics.Builder>- Throws:
IOException
-
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:
getAuPrcin interfaceClassificationEvaluationMetricsOrBuilder- Returns:
- The auPrc.
-
setAuPrc
Output only. The Area Under Precision-Recall Curve metric. Micro-averaged for the overall evaluation.
float au_prc = 1;- Parameters:
value- The auPrc to set.- Returns:
- This builder for chaining.
-
clearAuPrc
Output only. The Area Under Precision-Recall Curve metric. Micro-averaged for the overall evaluation.
float au_prc = 1;- Returns:
- This builder for chaining.
-
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:
getAuRocin interfaceClassificationEvaluationMetricsOrBuilder- Returns:
- The auRoc.
-
setAuRoc
Output only. The Area Under Receiver Operating Characteristic curve metric. Micro-averaged for the overall evaluation.
float au_roc = 6;- Parameters:
value- The auRoc to set.- Returns:
- This builder for chaining.
-
clearAuRoc
Output only. The Area Under Receiver Operating Characteristic curve metric. Micro-averaged for the overall evaluation.
float au_roc = 6;- Returns:
- This builder for chaining.
-
getLogLoss
public float getLogLoss()Output only. The Log Loss metric.
float log_loss = 7;- Specified by:
getLogLossin interfaceClassificationEvaluationMetricsOrBuilder- Returns:
- The logLoss.
-
setLogLoss
Output only. The Log Loss metric.
float log_loss = 7;- Parameters:
value- The logLoss to set.- Returns:
- This builder for chaining.
-
clearLogLoss
Output only. The Log Loss metric.
float log_loss = 7;- Returns:
- This builder for chaining.
-
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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;- Specified by:
getConfidenceMetricsEntryListin interfaceClassificationEvaluationMetricsOrBuilder
-
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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;- Specified by:
getConfidenceMetricsEntryCountin interfaceClassificationEvaluationMetricsOrBuilder
-
getConfidenceMetricsEntry
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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;- Specified by:
getConfidenceMetricsEntryin interfaceClassificationEvaluationMetricsOrBuilder
-
setConfidenceMetricsEntry
public ClassificationEvaluationMetrics.Builder setConfidenceMetricsEntry(int index, ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) 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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; -
setConfidenceMetricsEntry
public ClassificationEvaluationMetrics.Builder setConfidenceMetricsEntry(int index, ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) 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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; -
addConfidenceMetricsEntry
public ClassificationEvaluationMetrics.Builder addConfidenceMetricsEntry(ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) 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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; -
addConfidenceMetricsEntry
public ClassificationEvaluationMetrics.Builder addConfidenceMetricsEntry(int index, ClassificationEvaluationMetrics.ConfidenceMetricsEntry value) 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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; -
addConfidenceMetricsEntry
public ClassificationEvaluationMetrics.Builder addConfidenceMetricsEntry(ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) 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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; -
addConfidenceMetricsEntry
public ClassificationEvaluationMetrics.Builder addConfidenceMetricsEntry(int index, ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue) 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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; -
addAllConfidenceMetricsEntry
public ClassificationEvaluationMetrics.Builder addAllConfidenceMetricsEntry(Iterable<? extends ClassificationEvaluationMetrics.ConfidenceMetricsEntry> values) 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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; -
clearConfidenceMetricsEntry
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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; -
removeConfidenceMetricsEntry
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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; -
getConfidenceMetricsEntryBuilder
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntryBuilder(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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; -
getConfidenceMetricsEntryOrBuilder
public 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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;- Specified by:
getConfidenceMetricsEntryOrBuilderin interfaceClassificationEvaluationMetricsOrBuilder
-
getConfidenceMetricsEntryOrBuilderList
public List<? extends 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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3;- Specified by:
getConfidenceMetricsEntryOrBuilderListin interfaceClassificationEvaluationMetricsOrBuilder
-
addConfidenceMetricsEntryBuilder
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntryBuilder()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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; -
addConfidenceMetricsEntryBuilder
public ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntryBuilder(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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; -
getConfidenceMetricsEntryBuilderList
public List<ClassificationEvaluationMetrics.ConfidenceMetricsEntry.Builder> getConfidenceMetricsEntryBuilderList()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.v1.ClassificationEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entry = 3; -
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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4;- Specified by:
hasConfusionMatrixin interfaceClassificationEvaluationMetricsOrBuilder- Returns:
- Whether the confusionMatrix field is set.
-
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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4;- Specified by:
getConfusionMatrixin interfaceClassificationEvaluationMetricsOrBuilder- Returns:
- The confusionMatrix.
-
setConfusionMatrix
public ClassificationEvaluationMetrics.Builder setConfusionMatrix(ClassificationEvaluationMetrics.ConfusionMatrix value) 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; -
setConfusionMatrix
public ClassificationEvaluationMetrics.Builder setConfusionMatrix(ClassificationEvaluationMetrics.ConfusionMatrix.Builder builderForValue) 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; -
mergeConfusionMatrix
public ClassificationEvaluationMetrics.Builder mergeConfusionMatrix(ClassificationEvaluationMetrics.ConfusionMatrix value) 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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; -
clearConfusionMatrix
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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; -
getConfusionMatrixBuilder
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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4; -
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.v1.ClassificationEvaluationMetrics.ConfusionMatrix confusion_matrix = 4;- Specified by:
getConfusionMatrixOrBuilderin interfaceClassificationEvaluationMetricsOrBuilder
-
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:
getAnnotationSpecIdListin interfaceClassificationEvaluationMetricsOrBuilder- 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:
getAnnotationSpecIdCountin interfaceClassificationEvaluationMetricsOrBuilder- Returns:
- The count of annotationSpecId.
-
getAnnotationSpecId
Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;- Specified by:
getAnnotationSpecIdin interfaceClassificationEvaluationMetricsOrBuilder- 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:
getAnnotationSpecIdBytesin interfaceClassificationEvaluationMetricsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the annotationSpecId at the given index.
-
setAnnotationSpecId
Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;- Parameters:
index- The index to set the value at.value- The annotationSpecId to set.- Returns:
- This builder for chaining.
-
addAnnotationSpecId
Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;- Parameters:
value- The annotationSpecId to add.- Returns:
- This builder for chaining.
-
addAllAnnotationSpecId
Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;- Parameters:
values- The annotationSpecId to add.- Returns:
- This builder for chaining.
-
clearAnnotationSpecId
Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;- Returns:
- This builder for chaining.
-
addAnnotationSpecIdBytes
public ClassificationEvaluationMetrics.Builder addAnnotationSpecIdBytes(com.google.protobuf.ByteString value) Output only. The annotation spec ids used for this evaluation.
repeated string annotation_spec_id = 5;- Parameters:
value- The bytes of the annotationSpecId to add.- Returns:
- This builder for chaining.
-