
Run ML Pipeline
ML_models.RdThis function serves as a wrapper to run multiple machine learning models on a given dataset. It takes the training data, target variable, and a list of models to run, and executes the corresponding model training functions. The results from each model, including training time, resampling results, and fitted model objects, are collected in a list and returned. Optionally, the trained models and resampling results can be saved to a specified directory.
Usage
ML_models(
data,
target_var,
models_to_run = c("rf", "svm_r", "svm_p", "glm", "knn", "xgb"),
directory_to_save = NULL,
verbose = FALSE
)