Skip to main content
GET
/
v4
/
evaluations
/
{evaluation_id}
/
contributor-metrics
/
{contributor_id}
Python
import os
from scale_gp import SGPClient

client = SGPClient(
    api_key=os.environ.get("SGP_API_KEY"),  # This is the default and can be omitted
)
contributor_metrics = client.evaluations.contributor_metrics.retrieve(
    contributor_id="contributor_id",
    evaluation_id="evaluation_id",
)
print(contributor_metrics.annotated_by_user_id)
{
  "evaluation_id": "<string>",
  "annotated_by_user_id": "<string>",
  "total_num_test_cases_labeled": 123,
  "num_test_cases_fixed": 123,
  "percentage_test_cases_fixed": 123,
  "total_time_spent_labeling_sec": 123,
  "avg_time_spent_labeling_sec": 123
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Path Parameters

evaluation_id
string
required
contributor_id
string
required

Response

ContributorMetricsResponse · object | null

Successful Response

evaluation_id
string
required

The ID of the evaluation.

annotated_by_user_id
string
required

The ID of the user who annotated the test case.

total_num_test_cases_labeled
integer
required

Total number of test cases labeled.

num_test_cases_fixed
integer
required

Number of test cases that were fixed.

percentage_test_cases_fixed
number
required

Percentage of test cases done by this contributor that were fixed.

total_time_spent_labeling_sec
integer

Total time spent labeling in seconds.

avg_time_spent_labeling_sec
number

Average time spent labeling per test case in seconds.