Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExplainResponse
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExplainResponse
- 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
-
#deployed_model_id ⇒ String
ID of the Endpoint's DeployedModel that served this explanation.
-
#explanations ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Explanation>
The explanations of the Model's PredictResponse.predictions.
-
#predictions ⇒ Array<Object>
The predictions that are the output of the predictions call.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1ExplainResponse
constructor
A new instance of GoogleCloudAiplatformV1ExplainResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1ExplainResponse
Returns a new instance of GoogleCloudAiplatformV1ExplainResponse.
6825 6826 6827 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6825 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deployed_model_id ⇒ String
ID of the Endpoint's DeployedModel that served this explanation.
Corresponds to the JSON property deployedModelId
6811 6812 6813 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6811 def deployed_model_id @deployed_model_id end |
#explanations ⇒ Array<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
6817 6818 6819 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6817 def explanations @explanations end |
#predictions ⇒ Array<Object>
The predictions that are the output of the predictions call. Same as
PredictResponse.predictions.
Corresponds to the JSON property predictions
6823 6824 6825 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6823 def predictions @predictions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6830 6831 6832 6833 6834 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6830 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 |