train,validation, test split model in CARET in R
问题 I would like to ask for help please. I use this code to run the XGboost model in the Caret package. However, I want to use the validation split based on time. I want 60% training, 20% validation ,20% testing. I already split the data, but I do know how to deal with the validation data if it is not cross-validation. Thank you, xgb_trainControl = trainControl( method = "cv", number = 5, returnData = FALSE ) xgb_grid <- expand.grid(nrounds = 1000, eta = 0.01, max_depth = 8, gamma = 1, colsample