Recognize underfitting and overfitting, implement bagging and boosting, and build a stacked ensemble model using a number of classifiers.