Zero‑Training Tabular Predictions with NVIDIA Data Models

When using NVIDIA’s Structured Data Models (SDM) for zero‑training predictions on tables or relational data, a few quiet defaults can sabotage results if left unchecked. First, the automatic semantic‑type inference treats free‑text columns as high‑cardinality categoricals and ID columns as ordinary numbers, sending meaningless features to the model. Fix this by calling infer_stypes(df, text="infer", id="infer") or by explicitly overriding the stype map before building a TableTensor.

Second, the default TabICLv2 recipe only processes categorical and numerical blocks, so timestamp and text columns are silently dropped. The library emits a one‑time RuntimeWarning the first time, but subsequent calls suppress it, leaving you with a model that ignores crucial signals. Prepend processors that extract cyclic hour/weekday features from datetimes (AddCalendarFields) and TF‑IDF vectors from text (TFIDF) to the recipe, or build a custom recipe that includes those branches.

Third, installing the relational sampler requires pyg-lib. The library’s error message builds a wheel URL from the exact PyTorch patch version (e.g., torch-2.14.1+cpu.html), which often points to an empty page because wheels are published per minor version only. Derive the index URL from the major.minor version instead: https://data.pyg.org/whl/torch-{major}.{minor}.0+{flavour}.html.

Fourth, the GradientExplainer has two traps: it calls the output function once per estimator, returning only the last estimator’s gradients, and each estimator shuffles class order, so selecting probabilities by column position can flip signs. Use num_estimators=1 for explanation and always select outputs by class name (e.g., pred.columns[sdm.Stype.numerical].index("1")).

Finally, in relational modeling, omit declaring a time column for the orders table and the sampler may leak future orders into the context, inflating AUC to unrealistic levels. Always pass time_columns={"orders": "order_date"} (or the appropriate timestamp) to the sampler to enforce a strictly backward‑in‑time walk.

Applying these one‑line fixes ensures that what reaches the model is what you intend, and that the reported performance reflects genuine predictive power rather than hidden leakage or silent drops.

AI #Product #ML #DataScience #NVIDIA #StructuredDataModels