Need help to find shapley value

1 次查看(过去 30 天)
Ali Asghar
Ali Asghar 2021-5-19
评论: Drew 2023-5-5
Hello,
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 个评论
Girijashankar Sahoo
might be these cammand function file not in tool and add in your matlab directory then run
Ali Asghar
Ali Asghar 2021-5-19
Thanks for reply.
these are matlab example. how can i add it?

请先登录,再进行评论。

回答(1 个)

Drew
Drew 2023-5-5
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 个评论
Ali Asghar
Ali Asghar 2023-5-5
Thanks for your answer. I did it few month back.
Drew
Drew 2023-5-5
If this answers your question, it is recommended to accept the answer. I'm glad to hear that you upgraded your MATLAB already.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by