Displaying 2 results from an estimated 2 matches for "fold01".
Did you mean:
fold00
2012 Nov 23
1
caret train and trainControl
I am used to packages like e1071 where you have a tune step and then pass your tunings to train.
It seems with caret, tuning and training are both handled by train.
I am using train and trainControl to find my hyper parameters like so:
MyTrainControl=trainControl(
method = "cv",
number=5,
returnResamp = "all",
classProbs = TRUE
)
rbfSVM <- train(label~., data =
2013 Apr 07
2
Working with createFolds
Hello!
I have a question. I am working with createFolds:
folds<- trainControl(method='cv', index=createFolds(data$Score,list = TRUE))
I need to iterate over folds to extract the indexes from each fold.
For example, if I do folds$index$Fold01, it contains:
5 11 17 29 44 50 52 64 65
I need to iterate over each $Fold_i to extract the indexes, but I can't do
it because I don't know how to iterate over the structure folds$index$Fold_i
Any ideas?
Thanks!
[[alternative HTML version deleted]]