Explain the differences between bagging and boosting in terms of model training, prediction, and handling of overfitting. Provide examples of when each method would be preferred. | Databricks Certified Machine Learning - Associate Quiz - LeetQuiz