在R中的VIP软件包中,空的VIP图意味着什么?

发布于 2025-02-04 05:06:25 字数 797 浏览 6 评论 0原文

我正在尝试使用R中的VIP软件包从支持向量模型中绘制可变的重要性。但是,该图是空的。

set.seed(2022)
pet_uv_raw_svm_fit %>% 
extract_fit_parsnip() %>% 
vip(method = "permute",
  target = "class",
  metric = "accuracy",
  nsim = 20,
  pred_wrapper = kernlab::predict,
  train = pet_uv_train[, -1],
  )

“在此处输入图像描述”

具有相同的代码,但只有不同的数据,然后我得到了一个很好的可变值。

set.seed(2022)
pet_uv_svm_fit %>% 
extract_fit_parsnip() %>% 
vip(method = "permute",
  target = "class",
  metric = "accuracy",
  nsim = 20,
  pred_wrapper = kernlab::predict,
  train = pet_uv_train[, -1],
  )

“在此处输入图像说明”

所以,我的问题是空的VIP绘图是什么意思?导致结果的原因是什么?

任何想法都非常感谢。

I am trying to plot variable importance from a support vector model using the vip package in R. However, the plot is empty.

set.seed(2022)
pet_uv_raw_svm_fit %>% 
extract_fit_parsnip() %>% 
vip(method = "permute",
  target = "class",
  metric = "accuracy",
  nsim = 20,
  pred_wrapper = kernlab::predict,
  train = pet_uv_train[, -1],
  )

enter image description here

With the same code but only different data, then I get a good variable importance plot.

set.seed(2022)
pet_uv_svm_fit %>% 
extract_fit_parsnip() %>% 
vip(method = "permute",
  target = "class",
  metric = "accuracy",
  nsim = 20,
  pred_wrapper = kernlab::predict,
  train = pet_uv_train[, -1],
  )

enter image description here

So, my question is what does an empty vip plot mean? and what is the reason causing the result?

Any idea is very much appreciated.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文