1 Answer
- Newest
- Most votes
- Most comments
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]"}]}
answered a year ago
Relevant content
- asked 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago