machine learning – How to use your trained xgb-model in r to apply it on a new dataset?

I trained an xgb model like this: candidates_var_train <- model.matrix(job_change ~ 0 + ., data = candidates_train) candidates_train_xgb <- xgb.DMatrix(data = candidates_var_train, label = ifelse(candidates_train$job_change == “Interested”, 1, 0)) candidates_var_test <- model.matrix(job_change ~ 0 + ., data = candidates_test) candidates_test_xgb <- xgb.DMatrix(data = candidates_var_test, label = ifelse(candidates_test$job_change == “Interested”, 1, 0)) Got a decent AUC … Read more