PredictRequest

PredictionService.Predict 的请求消息。

JSON 表示法
{
  "endpoint": string,
  "instances": [
    value
  ],
  "parameters": value
}
字段
endpoint

string

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

instances[]

value (Value format)

必需。作为预测调用的输入的实例。DeployedModel 可能对每个请求支持的实例数量有上限。对于客户创建的模型,其行为与该模型记录的行为一致。任何单个实例的架构都可在端点的 DeployedModels 中指定。

parameters

value (Value format)

用于控制预测的参数。可在端点的 DeployedModels 上指定参数的架构。