curl --request POST \
--url https://api.woodwide.ai/models/{model_id}/explain/aggregate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model_version_id": "<string>",
"row_ids": [
123
],
"reference_row_ids": [
123
],
"focal_group_label": "<string>",
"reference_group_label": "<string>",
"target_class": "<string>",
"refresh": false
}
'import requests
url = "https://api.woodwide.ai/models/{model_id}/explain/aggregate"
payload = {
"model_version_id": "<string>",
"row_ids": [123],
"reference_row_ids": [123],
"focal_group_label": "<string>",
"reference_group_label": "<string>",
"target_class": "<string>",
"refresh": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model_version_id: '<string>',
row_ids: [123],
reference_row_ids: [123],
focal_group_label: '<string>',
reference_group_label: '<string>',
target_class: '<string>',
refresh: false
})
};
fetch('https://api.woodwide.ai/models/{model_id}/explain/aggregate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.woodwide.ai/models/{model_id}/explain/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model_version_id' => '<string>',
'row_ids' => [
123
],
'reference_row_ids' => [
123
],
'focal_group_label' => '<string>',
'reference_group_label' => '<string>',
'target_class' => '<string>',
'refresh' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.woodwide.ai/models/{model_id}/explain/aggregate"
payload := strings.NewReader("{\n \"model_version_id\": \"<string>\",\n \"row_ids\": [\n 123\n ],\n \"reference_row_ids\": [\n 123\n ],\n \"focal_group_label\": \"<string>\",\n \"reference_group_label\": \"<string>\",\n \"target_class\": \"<string>\",\n \"refresh\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.woodwide.ai/models/{model_id}/explain/aggregate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model_version_id\": \"<string>\",\n \"row_ids\": [\n 123\n ],\n \"reference_row_ids\": [\n 123\n ],\n \"focal_group_label\": \"<string>\",\n \"reference_group_label\": \"<string>\",\n \"target_class\": \"<string>\",\n \"refresh\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woodwide.ai/models/{model_id}/explain/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model_version_id\": \"<string>\",\n \"row_ids\": [\n 123\n ],\n \"reference_row_ids\": [\n 123\n ],\n \"focal_group_label\": \"<string>\",\n \"reference_group_label\": \"<string>\",\n \"target_class\": \"<string>\",\n \"refresh\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"type": "<string>",
"status": "initializing",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"created_by": {},
"actor_name": "<string>",
"model_type": "<string>",
"model_id": "<string>",
"dataset_id": "<string>",
"dataset_name": "<string>",
"input_filename": "<string>",
"parent_job_id": "<string>",
"input": {},
"output": {},
"resources": {
"dataset": {
"id": "<string>",
"version_id": "<string>",
"version_number": 123,
"archived": false
},
"type": "dataset_ingest"
},
"explanations": [
{
"id": "<string>",
"explanation_text": "<string>",
"explanation_label": "<string>",
"explanation_gloss": "<string>",
"feature_contributions": [
{}
],
"prediction_flip": {}
}
],
"error_message": "<string>",
"woodwide_runtime_version": "<string>",
"credits_consumed": 123,
"progress": 123,
"current_step": 123,
"total_steps": 123,
"current_phase": "ssl",
"metrics_history": [
{
"step": 123,
"train_loss": 123,
"val_loss": 123
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Explain Model Aggregate
Explain a prediction cohort/contrast or return model-level descriptions.
curl --request POST \
--url https://api.woodwide.ai/models/{model_id}/explain/aggregate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model_version_id": "<string>",
"row_ids": [
123
],
"reference_row_ids": [
123
],
"focal_group_label": "<string>",
"reference_group_label": "<string>",
"target_class": "<string>",
"refresh": false
}
'import requests
url = "https://api.woodwide.ai/models/{model_id}/explain/aggregate"
payload = {
"model_version_id": "<string>",
"row_ids": [123],
"reference_row_ids": [123],
"focal_group_label": "<string>",
"reference_group_label": "<string>",
"target_class": "<string>",
"refresh": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model_version_id: '<string>',
row_ids: [123],
reference_row_ids: [123],
focal_group_label: '<string>',
reference_group_label: '<string>',
target_class: '<string>',
refresh: false
})
};
fetch('https://api.woodwide.ai/models/{model_id}/explain/aggregate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.woodwide.ai/models/{model_id}/explain/aggregate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model_version_id' => '<string>',
'row_ids' => [
123
],
'reference_row_ids' => [
123
],
'focal_group_label' => '<string>',
'reference_group_label' => '<string>',
'target_class' => '<string>',
'refresh' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.woodwide.ai/models/{model_id}/explain/aggregate"
payload := strings.NewReader("{\n \"model_version_id\": \"<string>\",\n \"row_ids\": [\n 123\n ],\n \"reference_row_ids\": [\n 123\n ],\n \"focal_group_label\": \"<string>\",\n \"reference_group_label\": \"<string>\",\n \"target_class\": \"<string>\",\n \"refresh\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.woodwide.ai/models/{model_id}/explain/aggregate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model_version_id\": \"<string>\",\n \"row_ids\": [\n 123\n ],\n \"reference_row_ids\": [\n 123\n ],\n \"focal_group_label\": \"<string>\",\n \"reference_group_label\": \"<string>\",\n \"target_class\": \"<string>\",\n \"refresh\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woodwide.ai/models/{model_id}/explain/aggregate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model_version_id\": \"<string>\",\n \"row_ids\": [\n 123\n ],\n \"reference_row_ids\": [\n 123\n ],\n \"focal_group_label\": \"<string>\",\n \"reference_group_label\": \"<string>\",\n \"target_class\": \"<string>\",\n \"refresh\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"type": "<string>",
"status": "initializing",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"created_by": {},
"actor_name": "<string>",
"model_type": "<string>",
"model_id": "<string>",
"dataset_id": "<string>",
"dataset_name": "<string>",
"input_filename": "<string>",
"parent_job_id": "<string>",
"input": {},
"output": {},
"resources": {
"dataset": {
"id": "<string>",
"version_id": "<string>",
"version_number": 123,
"archived": false
},
"type": "dataset_ingest"
},
"explanations": [
{
"id": "<string>",
"explanation_text": "<string>",
"explanation_label": "<string>",
"explanation_gloss": "<string>",
"feature_contributions": [
{}
],
"prediction_flip": {}
}
],
"error_message": "<string>",
"woodwide_runtime_version": "<string>",
"credits_consumed": 123,
"progress": 123,
"current_step": 123,
"total_steps": 123,
"current_phase": "ssl",
"metrics_history": [
{
"step": 123,
"train_loss": 123,
"val_loss": 123
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Explain a prediction cohort, contrast, or persisted model-level description.
Public model-version ID. Omit to pin the latest ready version.
Focal cohort IDs. Null requests model-level descriptions.
Optional explicit comparison cohort; omitted means all other rows.
Optional plain-language name for the focal cohort in the gloss.
1 - 128^[^\r\n]+$Optional plain-language name for an explicit comparison cohort.
1 - 128^[^\r\n]+$Exact classification label. Binary models default to the positive class.
1Recompute model-level descriptions instead of using persisted ones.
Response
Successful Response
Detailed job information.
Extends Job with input/output payloads, typed resource
references, error details, and billing information.
Public ID of the job (e.g. job_A8K2P9QX).
Job type: dataset_ingest, train, infer_sync, or infer_batch.
Job status: initializing, pending, queued, running, succeeded, failed, canceled, or rejected. For dataset_ingest jobs, may also be 'waiting_for_upload'.
initializing, pending, queued, running, succeeded, failed, canceled, rejected, waiting_for_upload Who created this job: {principal_type, user_id, api_key_id}.
Display name of who created the job: the user's display name (email fallback), or the API key's name for API-key principals. Populated on dashboard-activity rows; null when the creator is unknown.
Model task type when applicable (e.g. prediction, clustering, anomaly). Derived from job input or the linked model; null for jobs without a model context.
Public ID of the parent model when the job is tied to a model (training, inference); null otherwise.
Public ID of the dataset when the job references a dataset version (e.g. batch inference on curated data); null for file-only inference and other jobs.
Display name of the linked dataset when resolved via dataset_version; null when there is no dataset or the name is unavailable.
Original name of the uploaded file for file-backed jobs (sync/async file inference); null when the job referenced a dataset or carries no uploaded file.
Public ID of the parent job when this job consumes outputs from it as part of a compound inference/training chain.
Resources for a dataset_ingest job.
- IngestResources
- TrainResources
- InferSyncResources
- InferBatchResources
- ModelExplainResources
Show child attributes
Show child attributes
Inline row explanations for succeeded infer_explain jobs.
Show child attributes
Show child attributes
Human-readable error message if the job failed.
ML runtime version used for this job.
Credits consumed by this job (null if not yet finalized).
Progress percentage (0-100). For training jobs, tracks training progress.
Current training step (training jobs only). Counts SSL + finetune steps.
Total training steps planned for this job (training jobs only).
Current training phase: ssl (self-supervised pre-training) or finetune (supervised head finetune). Training jobs only; null for unsupervised model types that have no training loop.
ssl, finetune Bounded series of per-interval training metrics (capped at 200 points, downsampled in place). Training jobs only; null for unsupervised paths and for jobs before the first validation gate.
Show child attributes
Show child attributes
Was this page helpful?