mi_train_rg function

Random Forest Model Training.