【问题标题】:Difference between cross-validation functions in caret packagecaret 包中交叉验证函数的区别
【发布时间】:2014-08-18 21:28:13
【问题描述】:

假设我们有 3 个模型 M1, M2, M3。我们想在训练集上使用 10 倍、10 次重复交叉验证来比较这些模型的性能。

有什么区别:

CV_Folds <- createMultiFolds(y, k = 10, times = 10)
fitControl <- trainControl(method='repeatedCV',index=CV_Folds)) 

fitControl <- trainControl(method= "repeatedcv", number=10, repeats=10)

【问题讨论】:

  • 他们返回不同的结果吗?你能提供一个reproducible example吗?
  • 我自己一直在搞砸,我看不出有什么区别。指定 index = CV_folds 只是简化了一些事情。

标签: r


【解决方案1】:

repeatedCV 方法不是有效选项。自 6.0-34 起,该名称的方法不会出现在 caret 源代码中。

【讨论】:

    猜你喜欢
    • 2016-06-24
    • 2021-11-13
    • 2019-12-17
    • 2016-02-01
    • 2018-07-15
    • 2017-02-10
    • 2016-02-25
    • 2021-04-25
    • 1970-01-01
    相关资源
    最近更新 更多