如何在训练隔离森林模型时知道哪些特征导致异常

发布于 2025-01-18 04:41:35 字数 1401 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南薇 2025-01-25 04:41:35

shap值和 shap库可以使用。参见此答案例如。

从数据点的解释器中获取shap值后,您可以使用瀑布地块查看不同的特征是如何贡献决定的。

shap.plots.waterfall(shap_values[0])

它将给出类似的图:

”在此处输入图像描述

SHAP values and the shap library can be used for this. See this answer for an example.

After getting the shap values out of the explainer for your datapoints, you can use the waterfall plots to see how different features contributed to the decision.

shap.plots.waterfall(shap_values[0])

It will give a plot similar to this:

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文