Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluatedAnnotationExplanation

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

Overview

Explanation result of the prediction produced by the Model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1EvaluatedAnnotationExplanation

Returns a new instance of GoogleCloudAiplatformV1EvaluatedAnnotationExplanation.



5852
5853
5854
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5852

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

Instance Attribute Details

#explanationGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1Explanation

Explanation of a prediction (provided in PredictResponse.predictions) produced by the Model on a given instance. Corresponds to the JSON property explanation



5844
5845
5846
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5844

def explanation
  @explanation
end

#explanation_typeString

Explanation type. For AutoML Image Classification models, possible values are:

  • image-integrated-gradients * image-xrai Corresponds to the JSON property explanationType

Returns:

  • (String)


5850
5851
5852
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5850

def explanation_type
  @explanation_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5857
5858
5859
5860
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 5857

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