learning_base_models function

Training the base models of an ensemble