TD_SHAP Input - Analytics Database

Database Analytic Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-04-01
dita:mapPath
gjn1627595495337.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
jmh1512506877710
Product Category
Teradata Vantageā„¢

TD_SHAP function has two input tables: InputTabe and ModelTable.

Table Description
InputTable The table that contains sample data for which to predict feature contribution.
ModelTable Table with same schema as OutputTable of TD_DecisionForest / TD_XGBoost function for trees or with same schema as OutputTable of TD_GLM function for linear regression.

InputTable Schema

Column Data Type Description
accumulate_columns Any Column appears once for each specified accumulate_column. Column to copy to output table.
input_column INTEGER, BIGINT, SMALLINT, BYTEINT, FLOAT, DECIMAL, NUMBER Column appears once for each specified input_column. Predictor variable.

If the Detailed argument is set to true, two more columns are appended to the output schema.

This restricts the number of columns supported by maximum number of input columns (2048) supported by Teradata - 2 (2046).

id Any Identifier for each row of input data.

ModelTable Schema

The model table schema is the same as OutputTable for the following training functions: