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

承認

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 を作成する際のリクエストボディ。

RESTful エンドポイントでは project_id は URL パスから取得されるため、このモデルには含まれません。

prediction_id
string
必須

予測 ID

scorer
string
必須

scorer の参照(weave:// URI)

value
number
必須

スコアの値

evaluation_run_id
string | null

このスコアを子コールとして関連付けるための、任意の Evaluation run の ID

レスポンス

成功時のレスポンス

score_id
string
必須

スコアの ID