Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PointwiseMetricResult

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

Spec for pointwise metric result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1PointwiseMetricResult

Returns a new instance of GoogleCloudAiplatformV1beta1PointwiseMetricResult.



23558
23559
23560
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 23558

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

Instance Attribute Details

#explanationString

Output only. Explanation for pointwise metric score. Corresponds to the JSON property explanation

Returns:

  • (String)


23551
23552
23553
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 23551

def explanation
  @explanation
end

#scoreFloat

Output only. Pointwise metric score. Corresponds to the JSON property score

Returns:

  • (Float)


23556
23557
23558
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 23556

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



23563
23564
23565
23566
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 23563

def update!(**args)
  @explanation = args[:explanation] if args.key?(:explanation)
  @score = args[:score] if args.key?(:score)
end