Compute On Dataset
POST/v2/metrics/dataset/
Compute a metric on a single dataset sample.
Parameters:
- metric: The metric name to compute.
Returns:
- The computed metric value.
Raises:
- HTTPException 400: If the dataset or 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
uid Uid (string)required
kwargs objectrequired
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...