Shapley Value Functions - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
8.00
1.0
Published
May 2019
Language
English (United States)
Last Update
2019-11-22
dita:mapPath
blj1506016597986.ditamap
dita:ditavalPath
blj1506016597986.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantageā„¢

The Shapley value is intended to reflect the importance of each player to the coalition in a cooperative game (a game between coalitions of players, rather than between individual players).

The ML Engine Shapley Value feature computes an approximate Shapley value by sampling over coalitions whose observed payoff values are included in the user data.

Function Description
ShapleyGenerateCombination Takes combinations of players (coalitions) and creates input for ShapleyAddOnePlayer.

Input is either unsorted user data or sorted output from nPath function. If input is unsorted, ShapleyGenerateCombination inputs it to ShapleySortCombinations.

ShapleySortCombinations Sorts combinations of players.

Input is from either ShapleyGenerateCombination or user.

ShapleyAddOnePlayer Takes sorted combinations and outputs a table.

Input is from either ShapleyGenerateCombination or ShapleySortCombinations.

The SQL Statements to Compute the Shapley Value query the ShapleyAddOnePlayer input and output tables.

Computing a Shapley Value