train_generic function

FUNCTION TO TRAIN GENERIC MODEL