在R中的VIP软件包中,空的VIP图意味着什么?
我正在尝试使用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],
)
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],
)
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论