1.0 - 8.00 - Shapley Value Functions - Teradata Vantage

Teradata® Vantage Machine Learning Engine Analytic Function Reference

Teradata Vantage
Release Number
Release Date
May 2019
Content Type
Programming Reference
Publication ID
English (United States)

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