Skip to main content
POST
Create training job

Authorizations

Authorization
string
header
required

An API key or OAuth2/OIDC access token sent as Authorization: Bearer <token>.

Body

application/json
dataframe
WireDataFrame · object
required

Serialized DataFrame plan over the org's registered sources. The server rebuilds the org's Context, deserializes this against it, and materializes the (possibly filtered/derived) training rows. The leaf source must be a registered source_table.

job_tags
Job Tags · object

Caller-supplied tags echoed on the training job resource.

task
Regression · object

Learning task and its target columns (a discriminated union on task_kind). Required for supervised training.

hpo_space
HPOSpace · object | null

The search space: candidate model families and, per family, which hyperparameters are fixed vs searched (Float/Int/Categorical/Mixture). If omitted, the server picks a default space based on dataset shape.

metrics
string[] | null

Metric names to optimise, e.g. ['auc'] or ['auc', 'neg_class_error']. A list of metrics is optimised jointly via Optuna's native multi-objective (Pareto) search, with no metric privileged. Custom Python callables are not supported in v1.

optimizer
Optimizer · object | null

How to search the space: sampler ('tpe'/'random'/'cmaes') and a round-structured trial budget (n_trials_per_step proposed per round x n_steps rounds). If omitted, the server uses a default optimizer.

n_cv_splits
integer | null

K-fold cross-validation folds. None means a single holdout split.

ensemble
boolean
default:false

If true, build a Caruana-style ensemble across stage-1 fold/trial models instead of refitting the winner on full data.

random_state
integer
default:42

Response

Successful Response

id
required