RawPredictRequest

PredictionService.RawPredict 的请求消息。

JSON 表示法
{
  "endpoint": string,
  "httpBody": {
    object (HttpBody)
  }
}
字段
endpoint

string

必需。被请求执行预测的端点的名称。格式:projects/{project}/locations/{location}/endpoints/{endpoint}

httpBody

object (HttpBody)

预测输入。支持 HTTP 标头和任意数据载荷。

DeployedModel 可能对每个请求支持的实例数量有上限。如果 AutoML 模型的此限制被超出,RawPredict 方法会返回错误。如果自定义训练的模型超出此限制,行为会因模型而异。

创建模型时,您可以在 PredictSchemata 字段中为每个实例指定架构。当您将 Model 作为 DeployedModel 部署到端点并使用 RawPredict 方法时,此架构适用。