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

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

 Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 19 Sep 2025

0 votes

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

Plus de réponses (0)

Catégories

Produits

Version

R2025a

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!