refit_leaves function

Refit the models in the leaves of a trained learner using the supplied data