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
Girijashankar Sahoo 2021년 5월 19일
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에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by