Skip to main content
POST
/
api
/
models
/
anomaly
/
{model_id}
/
infer
Python
import os
from woodwide import WoodWide

client = WoodWide(
    api_key=os.environ.get("WOOD_WIDE_AI_API_KEY"),  # This is the default and can be omitted
)
response = client.api.models.anomaly.infer(
    model_id="model_id",
)
print(response.anomalous_ids)
{
  "anomalous_ids": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model_id
string | null
required

Query Parameters

dataset_id
string | null
dataset_name
string | null
model_name
string | null

Body

application/x-www-form-urlencoded
coerce_schema
boolean
default:true

Response

Successful Response

Response for anomaly detection models. Returns a list of IDs (indices) from the input dataset identified as anomalous.

anomalous_ids
string[]
required