Skip to main content
POST
/
api
/
models
/
prediction
/
{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.prediction.infer(
    model_id="model_id",
)
print(response.prediction)
{
  "prediction": {},
  "prediction_prob": {}
}

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 prediction models. Contains 'prediction' mapping row IDs to predicted values. May contain 'prediction_prob' mapping row IDs to probabilities.

prediction
Prediction · object
required
prediction_prob
Prediction Prob · object