Shapley Value Functions Example | Teradata Vantage - Shapley Value Functions Example: nPath Creates ShapleyGenerateCombination - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
9.02
9.01
2.0
1.3
Published
February 2022
Language
English (United States)
Last Update
2022-02-10
dita:mapPath
rnn1580259159235.ditamap
dita:ditavalPath
ybt1582220416951.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantageā„¢

This example shows how to calculate Shapley Values using nPath to create the input to the ShapleyGenerateCombination function in the Shapley Value feature, using these steps:

  1. Use nPath to create conversion counts.
  2. Use nPath to create total counts.
  3. Compute the Shapley value for each player (CVS).
  4. Compute the augmented characteristic value table (ACVS).
  5. Compute the unnormalized Shapley values from the CVS and ACVS.

Download a zip file of all examples and a SQL script file that creates their input tables.