Quickstart: Kumo Tabular
This quickstart builds a Request directly from two small pandas DataFrames and runs a Kumo Tabular prediction through an NVIDIA NIM.
The small tables are for API verification only. They do not contain enough labelled examples to assess prediction quality.
Standard SDK workflow
After you install the SDK and make a kumo-tabular NIM available, use the following workflow:
- Prepare the labelled rows (
context) and the rows to score (predict). - Build a
Request, naming thetargetcolumn and thetask. - Call
client.predict(request, model=KumoTabular()).
The result is a PredictionResult; to_pandas() gives you a DataFrame.
1. Install the SDK
2. Prepare labelled and scored rows
to_score need not overlap with labelled at all: this model exists to score rows it has never seen.
3. Build the request
context must contain target; predict must not — those are the rows whose answer is being asked for. Every feature the model is shown in context has to be supplied for the rows being scored, except the primary key.
4. Run a prediction
The returned DataFrame includes row_index and, for classification, prediction and one probability_<class> column per class. The prediction values depend on the deployed model and the supplied context.
Pass api_key to SDMClient if your deployment has an authenticating gateway.