Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SummaryMetrics

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

The summary metrics for the evaluation run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SummaryMetrics

Returns a new instance of GoogleCloudAiplatformV1beta1SummaryMetrics.



52806
52807
52808
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 52806

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#failed_itemsFixnum

Optional. The number of items that failed to be evaluated. Corresponds to the JSON property failedItems

Returns:

  • (Fixnum)


52794
52795
52796
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 52794

def failed_items
  @failed_items
end

#metricsHash<String,Object>

Optional. Map of metric name to metric value. Corresponds to the JSON property metrics

Returns:

  • (Hash<String,Object>)


52799
52800
52801
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 52799

def metrics
  @metrics
end

#total_itemsFixnum

Optional. The total number of items that were evaluated. Corresponds to the JSON property totalItems

Returns:

  • (Fixnum)


52804
52805
52806
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 52804

def total_items
  @total_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



52811
52812
52813
52814
52815
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 52811

def update!(**args)
  @failed_items = args[:failed_items] if args.key?(:failed_items)
  @metrics = args[:metrics] if args.key?(:metrics)
  @total_items = args[:total_items] if args.key?(:total_items)
end