【发布时间】:2020-01-04 18:45:46
【问题描述】:
我在基准实验中使用嵌套交叉验证。我想检索用于每个外循环的实例的索引。我知道有一个函数getResamplingIndices() 适合这个任务。但它不会接受 'BenchmarkResult' 对象。有没有办法解决这个问题?这是一个例子:
res = benchmark(lrns, task, outer, measures = list(auc, ppv, npv), show.info = FALSE, models = T)
getResamplingIndices(res)
Error in getResamplingIndices(res) :
Assertion on 'object' failed: Must inherit from class 'ResampleResult', but has class 'BenchmarkResult'.
【问题讨论】:
-
您能提供可重现的代码吗?最好使用内置数据集。
标签: r machine-learning resampling mlr