如何在形状摘要图上更改轴
我正在遵循列出的代码,仅具有略有不同的值(因此我的代码完全如链接中所述)。
我的输出看起来像这样:
有人可以向我展示如何更改X轴(理想情况下是自动的,因为我必须为不同的数据集制作多个图),因此数据不那么堆积向上看到完整的情节?
I am following the code listed here, just with slightly different values (so my code is exactly as described in the link).
My output looks like this:
Would someone be able to show me how to change the X axis (ideally automatically, as I have to make multiple plots for different data sets), so the data is less bunched up and the full plot is seen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
关于问题中链接的代码,您可以在计算
shap_values
之后尝试以下解决方案:或
您也可以将上述解决方案组合起来以获取该解决方案最佳解决方案。
请参阅此答案以获取更多信息。
With reference to the code linked in the question, you can try the following solution(s) just after
shap_values
are calculated:OR
You can also combine the above solutions to get the best resolution for your result.
Please refer to this answer for more information.