メインコンテンツへスキップ
POST
/
v2
/
{entity}
/
{project}
/
scores
スコアの作成
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>"
}

承認

Authorization
string
header
必須

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

パスパラメータ

entity
string
必須
project
string
必須

ボディ

application/json

REST API 経由で Score を作成するためのリクエストボディ。

このモデルには project_id は含まれません。RESTful endpoints の URL パスから取得されるためです。

prediction_id
string
必須

予測 ID

scorer
string
必須

scorer の参照(weave:// URI)

value
number
必須

score の値

evaluation_run_id
string | null

この score を子 call として関連付けるための、省略可能な評価 run ID

レスポンス

正常なレスポンス

score_id
string
必須

score ID