どのようにして swarmchartで全変数を可視化することができますか?
1 view (last 30 days)
Show older comments
MathWorks Support Team
on 19 Sep 2025 at 0:00
Answered: MathWorks Support Team
on 19 Sep 2025 at 2:30
Shapley値の分布をswarmchartで可視化する際、mean absolute Shapley valuesが大きい上位10変数のみが自動的に選択されてプロットされます。全変数を可視化する方法を教えてください。
Accepted Answer
MathWorks Support Team
on 19 Sep 2025 at 0:00
swarmchart では、既定で最大10変数までが表示されるような仕様となっています。
こちらの相当するオプションとして NumImportantPredictors があります。
以下は swarmchart 関数の該当部分ドキュメント抜粋となります。
NumInportantPredictors: min(M,10) where M is the number of predictors(default)
例えば、15変数すべてに対して表示させる場合は、該当オプションに対して、明示的に15と設定します。
swarmchart(explainer,NumImportantPredictors=15)
0 Comments
More Answers (0)
See Also
Categories
Find more on 実験計画法 (DOE) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!