powered by
FUNCTION TO TRAIN GENERIC MODEL
train_generic(y, ...)
(optional) factor (classes)
list parms trControl (method...)
model trained