Efficient model functions for bagging
