Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExplainResponse

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

Response message for PredictionService.Explain.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1ExplainResponse

Returns a new instance of GoogleCloudAiplatformV1ExplainResponse.



6213
6214
6215
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6213

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

Instance Attribute Details

#deployed_model_idString

ID of the Endpoint's DeployedModel that served this explanation. Corresponds to the JSON property deployedModelId

Returns:

  • (String)


6199
6200
6201
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6199

def deployed_model_id
  @deployed_model_id
end

#explanationsArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Explanation>

The explanations of the Model's PredictResponse.predictions. It has the same number of elements as instances to be explained. Corresponds to the JSON property explanations



6205
6206
6207
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6205

def explanations
  @explanations
end

#predictionsArray<Object>

The predictions that are the output of the predictions call. Same as PredictResponse.predictions. Corresponds to the JSON property predictions

Returns:

  • (Array<Object>)


6211
6212
6213
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6211

def predictions
  @predictions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6218
6219
6220
6221
6222
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6218

def update!(**args)
  @deployed_model_id = args[:deployed_model_id] if args.key?(:deployed_model_id)
  @explanations = args[:explanations] if args.key?(:explanations)
  @predictions = args[:predictions] if args.key?(:predictions)
end