Gradient boosting

It seems like model class is just wrapper over ResultFuction. Can we merge these two classes?