Help us improve these docs. Take our quick survey.
curl --request POST \
--url https://api.example.com/v2/{entity}/{project}/scores \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"prediction_id": "<string>",
"scorer": "<string>",
"value": 123,
"evaluation_run_id": "<string>"
}
'{
"score_id": "<string>"
}Créer un score.
curl --request POST \
--url https://api.example.com/v2/{entity}/{project}/scores \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"prediction_id": "<string>",
"scorer": "<string>",
"value": 123,
"evaluation_run_id": "<string>"
}
'{
"score_id": "<string>"
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Corps de requête pour créer un score via l’API REST.
Ce modèle exclut project_id, car il provient du chemin d’URL dans les endpoints RESTful.
Réponse réussie
L’ID du score
Cette page vous a-t-elle été utile ?