Shapley Value Functions Example: nPath Creates ShapleyGenerateCombination - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
8.10
1.1
Published
October 2019
Language
English (United States)
Last Update
2019-12-31
dita:mapPath
ima1540829771750.ditamap
dita:ditavalPath
jsj1481748799576.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 from the attachment in the left sidebar.