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)
Citar como
RMS Danaraj (2024). Shapley Value (https://www.mathworks.com/matlabcentral/fileexchange/46358-shapley-value), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- AI and Statistics > Statistics and Machine Learning Toolbox > Cluster Analysis and Anomaly Detection > Nearest Neighbors >
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
TU-RAJ/
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |