どのようにして swarmchart​で全変数を可視化する​ことができますか?

Shapley値の分布をswarmchartで可視化する際、mean absolute Shapley valuesが大きい上位10変数のみが自動的に選択されてプロットされます。全変数を可視化する方法を教えてください。

 採用された回答

MathWorks Support Team
MathWorks Support Team 2025 年 9 月 19 日

0 投票

swarmchart では、既定で最大10変数までが表示されるような仕様となっています。
こちらの相当するオプションとして NumImportantPredictors があります。
以下は swarmchart 関数の該当部分ドキュメント抜粋となります。
NumInportantPredictors: min(M,10) where M is the number of predictors(default)
例えば、15変数すべてに対して表示させる場合は、該当オプションに対して、明示的に15と設定します。
swarmchart(explainer,NumImportantPredictors=15)

その他の回答 (0 件)

カテゴリ

製品

リリース

R2025a

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!