1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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]"}]}
répondu il y a un an
Contenus pertinents
- demandé il y a 6 mois
- demandé il y a 8 mois
- AWS OFFICIELA mis à jour il y a 9 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans