public final class Evaluation extends GeneratedMessageV3 implements EvaluationOrBuilder
Describes an evaluation between a machine learning model's predictions and
ground truth labels. Created when an EvaluationJob runs successfully.
Protobuf type google.cloud.datalabeling.v1beta1.Evaluation
Static Fields
ANNOTATION_TYPE_FIELD_NUMBER
public static final int ANNOTATION_TYPE_FIELD_NUMBER
Field Value
CONFIG_FIELD_NUMBER
public static final int CONFIG_FIELD_NUMBER
Field Value
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
EVALUATED_ITEM_COUNT_FIELD_NUMBER
public static final int EVALUATED_ITEM_COUNT_FIELD_NUMBER
Field Value
EVALUATION_JOB_RUN_TIME_FIELD_NUMBER
public static final int EVALUATION_JOB_RUN_TIME_FIELD_NUMBER
Field Value
EVALUATION_METRICS_FIELD_NUMBER
public static final int EVALUATION_METRICS_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Evaluation getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Evaluation.Builder newBuilder()
Returns
newBuilder(Evaluation prototype)
public static Evaluation.Builder newBuilder(Evaluation prototype)
Parameter
Returns
public static Evaluation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Evaluation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Evaluation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Evaluation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Evaluation parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Evaluation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Evaluation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Evaluation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Evaluation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Evaluation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Evaluation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Evaluation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Evaluation> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAnnotationType()
public AnnotationType getAnnotationType()
Output only. Type of task that the model version being evaluated performs,
as defined in the
evaluationJobConfig.inputConfig.annotationType
field of the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6;
Returns
getAnnotationTypeValue()
public int getAnnotationTypeValue()
Output only. Type of task that the model version being evaluated performs,
as defined in the
evaluationJobConfig.inputConfig.annotationType
field of the evaluation job that created this evaluation.
.google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6;
Returns
Type | Description |
int | The enum numeric value on the wire for annotationType.
|
getConfig()
public EvaluationConfig getConfig()
Output only. Options used in the evaluation job that created this
evaluation.
.google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2;
Returns
getConfigOrBuilder()
public EvaluationConfigOrBuilder getConfigOrBuilder()
Output only. Options used in the evaluation job that created this
evaluation.
.google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2;
Returns
getCreateTime()
public Timestamp getCreateTime()
Output only. Timestamp for when this evaluation was created.
.google.protobuf.Timestamp create_time = 4;
Returns
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp for when this evaluation was created.
.google.protobuf.Timestamp create_time = 4;
Returns
getDefaultInstanceForType()
public Evaluation getDefaultInstanceForType()
Returns
getEvaluatedItemCount()
public long getEvaluatedItemCount()
Output only. The number of items in the ground truth dataset that were used
for this evaluation. Only populated when the evaulation is for certain
AnnotationTypes.
int64 evaluated_item_count = 7;
Returns
Type | Description |
long | The evaluatedItemCount.
|
getEvaluationJobRunTime()
public Timestamp getEvaluationJobRunTime()
Output only. Timestamp for when the evaluation job that created this
evaluation ran.
.google.protobuf.Timestamp evaluation_job_run_time = 3;
Returns
Type | Description |
Timestamp | The evaluationJobRunTime.
|
getEvaluationJobRunTimeOrBuilder()
public TimestampOrBuilder getEvaluationJobRunTimeOrBuilder()
Output only. Timestamp for when the evaluation job that created this
evaluation ran.
.google.protobuf.Timestamp evaluation_job_run_time = 3;
Returns
getEvaluationMetrics()
public EvaluationMetrics getEvaluationMetrics()
Output only. Metrics comparing predictions to ground truth labels.
.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5;
Returns
getEvaluationMetricsOrBuilder()
public EvaluationMetricsOrBuilder getEvaluationMetricsOrBuilder()
Output only. Metrics comparing predictions to ground truth labels.
.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5;
Returns
getName()
Output only. Resource name of an evaluation. The name has the following
format:
"projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Output only. Resource name of an evaluation. The name has the following
format:
"projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id</var>}'
string name = 1;
Returns
getParserForType()
public Parser<Evaluation> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasConfig()
public boolean hasConfig()
Output only. Options used in the evaluation job that created this
evaluation.
.google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2;
Returns
Type | Description |
boolean | Whether the config field is set.
|
hasCreateTime()
public boolean hasCreateTime()
Output only. Timestamp for when this evaluation was created.
.google.protobuf.Timestamp create_time = 4;
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
hasEvaluationJobRunTime()
public boolean hasEvaluationJobRunTime()
Output only. Timestamp for when the evaluation job that created this
evaluation ran.
.google.protobuf.Timestamp evaluation_job_run_time = 3;
Returns
Type | Description |
boolean | Whether the evaluationJobRunTime field is set.
|
hasEvaluationMetrics()
public boolean hasEvaluationMetrics()
Output only. Metrics comparing predictions to ground truth labels.
.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5;
Returns
Type | Description |
boolean | Whether the evaluationMetrics field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Evaluation.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Evaluation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Evaluation.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions