TD_SHAP Syntax | SHAP - TD_SHAP Syntax - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
TD_SHAP(
  ON { table | view | (query) } AS InputTable
  ON { table | view | (query) } AS ModelTable DIMENSION
  OUT  [PERMANENT | VOLATILE] Table GlobalExplanation (outtable)
USING
  IDColumn ('row_id_column')
  TrainingFunction({'td_glm'|'td_decisionforest'|'td_xgboost'})
  InputColumns({<input column> | <input column range>} [,...]')
  [ ModelType({'regression'|'classification'}) ]
  [ Detailed({'true'|'t'|'yes'|'y'|'1'|'false'|'f'|'no'|'n'|'0'})]
  [ Accumulate({<column> | <column range>} [,...]})]
  [ NumParallelTrees(<NumberofTrees>)]
  [ NumBoostRounds(<IterationNumber>)]
 )

You can call this function from:
  • The FROM clause of a SELECT statement
  • As part of a CREATE TABLE statement
  • As part of a CREATE VIEW statement