deployedModelId = $deployedModelId; } /** * @return string */ public function getDeployedModelId() { return $this->deployedModelId; } /** * If specified, overrides the explanation_spec of the DeployedModel. Can be * used for explaining prediction results with different configurations, such * as: - Explaining top-5 predictions results as opposed to top-1; - * Increasing path count or step count of the attribution methods to reduce * approximate errors; - Using different baselines for explaining the * prediction results. * * @param GoogleCloudAiplatformV1ExplanationSpecOverride $explanationSpecOverride */ public function setExplanationSpecOverride(GoogleCloudAiplatformV1ExplanationSpecOverride $explanationSpecOverride) { $this->explanationSpecOverride = $explanationSpecOverride; } /** * @return GoogleCloudAiplatformV1ExplanationSpecOverride */ public function getExplanationSpecOverride() { return $this->explanationSpecOverride; } /** * Required. The instances that are the input to the explanation call. A * DeployedModel may have an upper limit on the number of instances it * supports per request, and when it is exceeded the explanation call errors * in case of AutoML Models, or, in case of customer created Models, the * behaviour is as documented by that Model. The schema of any single instance * may be specified via Endpoint's DeployedModels' Model's PredictSchemata's * instance_schema_uri. * * @param array[] $instances */ public function setInstances($instances) { $this->instances = $instances; } /** * @return array[] */ public function getInstances() { return $this->instances; } /** * The parameters that govern the prediction. The schema of the parameters may * be specified via Endpoint's DeployedModels' Model's PredictSchemata's * parameters_schema_uri. * * @param array $parameters */ public function setParameters($parameters) { $this->parameters = $parameters; } /** * @return array */ public function getParameters() { return $this->parameters; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudAiplatformV1ExplainRequest::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ExplainRequest');