1 回答
- 最新
- 投票最多
- 评论最多
0
I was able to get multiple rows predicted. It appears to only support CSV body format.
$> cat body
892,3,"Kelly Mr. James","male",34.5,0,0,"330911",7.8292,"","Q"
892,3,"Kelly Mr. James","male",34.5,0,0,"330911",7.8292,"","Q"
$> aws sagemaker-runtime invoke-endpoint --endpoint-name your-endpoint --body fileb://body --content-type text/csv --accept application/json response
{
"ContentType": "application/json",
"InvokedProductionVariant": "default-variant-name"
}
$> cat response
{"predictions": [{"predicted_label": "0", "labels": "['0', '1']", "probability": 0.8901974558830261, "probabilities": "[0.8901974558830261, 0.10980253666639328]"}, {"predicted_label": "0", "labels": "['0', '1']", "probability": 0.8901974558830261, "probabilities": "[0.8901974558830261, 0.10980253666639328]"}]}
已回答 1 年前
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前