@pagal_guy wrote:
Hello,
I am using caret for modeling so that I can use cross validation.Below is my code for rpart:
Control <- trainControl(method='cv', number=5,repeats = 10,returnResamp='none') rpartModel <- train(Loan_Status~.,data = training, method='rpart', trControl=Control, metric = "Accuracy")
However I am not getting the predicted values:
> rpartModel$pred NULL
How do I get the predictions??r
Posts: 1
Participants: 1