Full model for bagging