Skip to navigation

Run Kumo Tabular

View as MarkdownOpen in Claude

Use sdm.models.KumoTabular to predict a target column for query rows from labeled context rows of the same table. For what the model is and how it works, see Kumo Tabular.

PropertyValue
Classsdm.models.KumoTabular
Available inSDM 0.2.1 and later
Default sizelarge

Make a Prediction

The Quickstart runs Kumo Tabular end to end on CPU, including regression and context reuse. The core call is:

model = sdm.models.KumoTabular(task="classification", device=device)
probs = model(x_context=x_context, y_context=y_context, x_query=x_query, num_estimators=8)

x_context, y_context, and x_query are TableTensor objects. probs holds one probability column per class.

Key Parameters

ParameterWhereMeaning
taskConstructor"classification", "regression", or both (default). Loads only the heads you need.
sizeConstructor"small", "medium", or "large"
num_estimatorsForward, fitNumber of ensemble members over randomized views
estimator_batch_sizeForward, fitMembers per model call. Lower it to reduce device memory.
recipeForward, fitReplace the default preprocessing and postprocessing
generatorForward, fitSeeded torch.Generator for reproducible results

Inputs and Limits

  • One forward pass covers up to 10 classes; SDM extends this to any number of classes with error-correcting output codes.
  • The default recipe keeps at most 500 feature columns per estimator, after shuffling columns.
  • Text, datetime, and other column types need recipe processors that turn them into numerical features.

Best Practices for Kumo Tabular covers context selection, column types, and settings that raise accuracy.

Fine-Tuning

Kumo Tabular supports full fine-tuning through a differentiable forward pass. See the fine-tuning guide and examples/tabular/finetune.py.

Learn More