插入符号包中的交叉验证功能之间的区别

时间:2014-07-23 17:27:37

标签: r

假设我们有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)

1 个答案:

答案 0 :(得分:0)

方法repeatedCV不是有效选项。该名称的方法未显示在caret的{​​{1}}源代码中。