seed: A random seed for cross-validation fold division.
trace: Output the cross-validation parameter tuning progress or not. Default is FALSE.
parallel: Logical. Enable parallel parameter tuning or not, default is FALSE. To enable parallel tuning, load the doParallel package and run registerDoParallel()
with the number of CPU cores before calling this function.