Shapley Value
his software determines the shapley value of the transferable utility game.This developed as part of my research in cooperative games.This software can be utilised for transferable utility games.
Unzip the folder TU-RAJ and add it to the path.
if want to have the coalition matrix.Coalition matrix is the set of the all coalition combinations.for n player there are 2^n-1 colaition constraints.
The command coalition(n) will give the colaition matrix A;
Example-1
n=5;
A=coalition(n)
A =
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
1 1 0 0 0
1 0 1 0 0
1 0 0 1 0
1 0 0 0 1
0 1 1 0 0
0 1 0 1 0
0 1 0 0 1
0 0 1 1 0
0 0 1 0 1
0 0 0 1 1
1 1 1 0 0
1 1 0 1 0
1 1 0 0 1
1 0 1 1 0
1 0 1 0 1
1 0 0 1 1
0 1 1 1 0
0 1 1 0 1
0 1 0 1 1
0 0 1 1 1
1 1 1 1 0
1 1 1 0 1
1 1 0 1 1
1 0 1 1 1
0 1 1 1 1
To determine shapley value the no of players and the coalition values should be given as input to the program.
Example-2
n=5;
v=[1 2 3 4 5 3 4 5 6 5 6 7 7 8 9 6 7 8 8 9 10 9 10 11 12 10 11 12 13 14 15];
S=shap1(n,v)
Cita come
RMS Danaraj (2024). Shapley Value (https://www.mathworks.com/matlabcentral/fileexchange/46358-shapley-value), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- AI and Statistics > Statistics and Machine Learning Toolbox > Cluster Analysis and Anomaly Detection > Nearest Neighbors >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
TU-RAJ/
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |