Clear Filters
Clear Filters

Swarmchart maximum diplay for shapley?

21 views (last 30 days)
Ozge Karaaslan
Ozge Karaaslan on 13 Sep 2024 at 11:50
Answered: Ive J on 13 Sep 2024 at 14:57
I will draw a shapey model with Swarmchart. When I draw it, it shows a maximum of 10 predictors on the right axis. How can I increase it to 20?
Example;
swarmchart(explainer,'Class',1)

Answers (1)

Ive J
Ive J on 13 Sep 2024 at 14:57
You can use NumImportantPredictors argument:
swarmchart(explainer, NumImportantPredictors=11)

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!