public static final class ClassificationMetrics.Builder extends GeneratedMessage.Builder<ClassificationMetrics.Builder> implements ClassificationMetricsOrBuilderMetrics calculated for a classification model.
Protobuf type google.cloud.datalabeling.v1beta1.ClassificationMetrics
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ClassificationMetrics.BuilderImplements
ClassificationMetricsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ClassificationMetrics build()| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics |
|
buildPartial()
public ClassificationMetrics buildPartial()| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics |
|
clear()
public ClassificationMetrics.Builder clear()| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics.Builder |
|
clearConfusionMatrix()
public ClassificationMetrics.Builder clearConfusionMatrix()Confusion matrix of predicted labels vs. ground truth labels.
.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;
| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics.Builder |
|
clearPrCurve()
public ClassificationMetrics.Builder clearPrCurve()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 |
ClassificationMetrics.Builder |
|
getConfusionMatrix()
public ConfusionMatrix getConfusionMatrix()Confusion matrix of predicted labels vs. ground truth labels.
.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;
| Returns | |
|---|---|
| Type | Description |
ConfusionMatrix |
The confusionMatrix. |
getConfusionMatrixBuilder()
public ConfusionMatrix.Builder getConfusionMatrixBuilder()Confusion matrix of predicted labels vs. ground truth labels.
.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;
| Returns | |
|---|---|
| Type | Description |
ConfusionMatrix.Builder |
|
getConfusionMatrixOrBuilder()
public ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder()Confusion matrix of predicted labels vs. ground truth labels.
.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;
| Returns | |
|---|---|
| Type | Description |
ConfusionMatrixOrBuilder |
|
getDefaultInstanceForType()
public ClassificationMetrics getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 | |
|---|---|
| Type | Description |
PrCurve |
The prCurve. |
getPrCurveBuilder()
public PrCurve.Builder getPrCurveBuilder()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 |
PrCurve.Builder |
|
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 | |
|---|---|
| Type | Description |
PrCurveOrBuilder |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeConfusionMatrix(ConfusionMatrix value)
public ClassificationMetrics.Builder mergeConfusionMatrix(ConfusionMatrix value)Confusion matrix of predicted labels vs. ground truth labels.
.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ConfusionMatrix |
| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics.Builder |
|
mergeFrom(ClassificationMetrics other)
public ClassificationMetrics.Builder mergeFrom(ClassificationMetrics other)| Parameter | |
|---|---|
| Name | Description |
other |
ClassificationMetrics |
| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ClassificationMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ClassificationMetrics.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics.Builder |
|
mergePrCurve(PrCurve value)
public ClassificationMetrics.Builder mergePrCurve(PrCurve value)Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.
.google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
PrCurve |
| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics.Builder |
|
setConfusionMatrix(ConfusionMatrix value)
public ClassificationMetrics.Builder setConfusionMatrix(ConfusionMatrix value)Confusion matrix of predicted labels vs. ground truth labels.
.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ConfusionMatrix |
| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics.Builder |
|
setConfusionMatrix(ConfusionMatrix.Builder builderForValue)
public ClassificationMetrics.Builder setConfusionMatrix(ConfusionMatrix.Builder builderForValue)Confusion matrix of predicted labels vs. ground truth labels.
.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ConfusionMatrix.Builder |
| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics.Builder |
|
setPrCurve(PrCurve value)
public ClassificationMetrics.Builder setPrCurve(PrCurve value)Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.
.google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
PrCurve |
| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics.Builder |
|
setPrCurve(PrCurve.Builder builderForValue)
public ClassificationMetrics.Builder setPrCurve(PrCurve.Builder builderForValue)Precision-recall curve based on ground truth labels, predicted labels, and scores for the predicted labels.
.google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
PrCurve.Builder |
| Returns | |
|---|---|
| Type | Description |
ClassificationMetrics.Builder |
|