WeltPython SDK

From a DataFrame
to a prediction.

Your table. A foundation model. A predictor you can reuse.
Start with Python you already know.

Illustrative workflow. No request runs in this page.

Fit uploads your table to your private workspace and waits for remote preparation. Prediction executes remotely. Your fitted predictor stays reusable after this Python session ends.

Models and limits ↗   Full walkthrough ↗

Your first prediction

Python 3.11–3.13 · SDK 0.7.0

1   Install the releaseEnvironment setup ↗
sh
python -m pip install 'welt-client @ https://github.com/ergodic-ai/welt-python/releases/download/v0.7.0/welt_client-0.7.0-py3-none-any.whl'
2   Create a workspace keyOpen Welt ↗

In Account, enable Allow writes, fits and predictions. Keep the key in local secret configuration or use the hidden Python prompt below.

Set your key safely in Python
python
import getpass
import os

if not os.environ.get("WELT_API_KEY"):
    os.environ["WELT_API_KEY"] = getpass.getpass("Welt API key (hidden): ")

3   Fit and predict
Sample data and imports · included in Copy
python
import numpy as np
import pandas as pd
from welt import Classifier

rng = np.random.default_rng(9)
values = rng.normal(size=(160, 4))
train = pd.DataFrame(values[:128], columns=["a", "b", "c", "d"])
train["label"] = np.where(values[:128, 0] + 0.5 * values[:128, 1] > 0,
                          "positive", "negative")
query = pd.DataFrame(values[128:], columns=["a", "b", "c", "d"])
python
model = Classifier(model="tabicl-v2", random_state=9)
model.fit(train, target="label")
predictions = model.predict(query)
print(type(predictions).__name__, predictions.shape)

What you getndarray (32,) — one class label per query row, in order.
Expected type and shape; actual labels come from the model.

Created datasets and predictors remain in your workspace. A local timeout leaves work running; reconnect by job ID.

Use your own table ↗

Declare the target, match the columns, and predict on new rows.

Reopen your predictor ↗

Keep the fitted identity. Predict again without uploading training data.

Learn in a notebook ↗

Clear, runnable examples for prediction, research and native discovery.

Documentation
Search SDK 0.7.0

Search this SDK version by task, method or error.