英文:
Variable Importance P-Values
问题
importance_pvalues(https://rdrr.io/cran/ranger/man/importance_pvalues.html)命令是否可以通过mlr3使用?换句话说,我是否可以指示在调用学习器时输出p值?如果不能,我该如何提取ranger对象以用作importance_pvalues命令的输入?
英文:
Can the importance_pvalues (https://rdrr.io/cran/ranger/man/importance_pvalues.html) command be used via mlr3? In other words, can I indicate that I would like the p-values outputted in my call to the learner? If not, how would I go about extracting the ranger object to use as input for the importance_pvalues command?
答案1
得分: 1
你可以始终通过 mlr3 中的 $model
字段访问存储的模型。
library(mlr3verse)
library(ranger)
learner = lrn("classif.ranger", importance = "impurity_corrected")
learner$train(tsk("sonar"))
importance_pvalues(learner$model)
英文:
You can always access the stored model via the $model
field in mlr3.
library(mlr3verse)
library(ranger)
learner = lrn("classif.ranger", importance = "impurity_corrected")
learner$train(tsk("sonar"))
importance_pvalues(learner$model)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论