Need help to find shapley value
Mostrar comentarios más antiguos
Hello,
I am trying to solve the shapley example from https://www.mathworks.com/help/stats/shapley.html#mw_d87577fe-23b3-4528-9360-8f4a7a2e4c42 .
1- When i wrtie mdl = fitrkernel(tbl,'MPG','CategoricalPredictors',[2 5]);
Its give error
2- When i write explainer = shapley(mdl,tbl)
error: Unrecognized function or variable 'shapley'.
Pls guide me.
2 comentarios
Girijashankar Sahoo
el 19 de Mayo de 2021
might be these cammand function file not in tool and add in your matlab directory then run
Ali Asghar
el 19 de Mayo de 2021
Respuestas (1)
Drew
el 5 de Mayo de 2023
0 votos
The shapley command (https://www.mathworks.com/help/stats/shapley.html) was released in R2021a. The sidebar indicates you were using R2020a. So, you need to upgrade to a MATLAB version that is R2021a or higher to run the shapley command.
2 comentarios
Ali Asghar
el 5 de Mayo de 2023
Drew
el 5 de Mayo de 2023
If this answers your question, it is recommended to accept the answer. I'm glad to hear that you upgraded your MATLAB already.
Categorías
Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!