class Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1Evaluation

Describes an evaluation between a machine learning model's predictions and ground truth labels. Created when an EvaluationJob runs successfully.

Attributes

annotation_type[RW]

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. Corresponds to the JSON property `annotationType` @return [String]

config[RW]

Configuration details used for calculating evaluation metrics and creating an Evaluation. Corresponds to the JSON property `config` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationConfig]

create_time[RW]

Output only. Timestamp for when this evaluation was created. Corresponds to the JSON property `createTime` @return [String]

evaluated_item_count[RW]

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. Corresponds to the JSON property `evaluatedItemCount` @return [Fixnum]

evaluation_job_run_time[RW]

Output only. Timestamp for when the evaluation job that created this evaluation ran. Corresponds to the JSON property `evaluationJobRunTime` @return [String]

evaluation_metrics[RW]

Output only. Metrics comparing predictions to ground truth labels. Corresponds to the JSON property `evaluationMetrics` @return [Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationMetrics]

name[RW]

Output only. Resource name of an evaluation. The name has the following format: “projects/`project_id`/datasets/`dataset_id`/evaluations/ `evaluation_id`' Corresponds to the JSON property `name` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 1735
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datalabeling_v1beta1/classes.rb, line 1740
def update!(**args)
  @annotation_type = args[:annotation_type] if args.key?(:annotation_type)
  @config = args[:config] if args.key?(:config)
  @create_time = args[:create_time] if args.key?(:create_time)
  @evaluated_item_count = args[:evaluated_item_count] if args.key?(:evaluated_item_count)
  @evaluation_job_run_time = args[:evaluation_job_run_time] if args.key?(:evaluation_job_run_time)
  @evaluation_metrics = args[:evaluation_metrics] if args.key?(:evaluation_metrics)
  @name = args[:name] if args.key?(:name)
end