Compute On Dataset Batch
POST/v2/metrics/dataset/batch/
Compute a metric on a batch of dataset samples.
Parameters:
- metric: The metric name and dataset samples to compute.
Returns:
- A list of computed metric values for each sample.
Raises:
- HTTPException 400: If the dataset or any sample is not found.
- HTTPException 500: If there is an error computing the metric.
Request
- application/json
Body
required
metric Metric (string)required
dataset Dataset (string)required
kwargs object[]required
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
any
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...