How to check and interpret the result of K-fold cross validation in R?




I was following this code on K fold cross validation technique but I dont seem to undersatnd how to interpret the result.

Can someone enlighten upon this?



The final result is still the prediction of sepal length for each input. But here, k-fold cross validation is done. So if you print the output at each step in the for loop as follows:

temp <-, testset[,-1]))
print(temp) #Add this line
prediction <- rbind(prediction, temp)

It will be very easy for you to see the progress as the code runs and the values that are generated at every iteration.

Hope this helps!