179 questions
No questions match those filters.
What's the actual mechanical difference between bagging...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansBagging trains many independent models in parallel on bootstrap resamples of the same data and averages their predictions. Because the models are independent and identically distributed, averaging cancels out uncorrelated errors and mainly reduces variance — which is why Random Forest reliably tames an overfitting deep tree without touching its bias. Boosting instead trains models sequentially: each new learner is fit to the residual error (or reweighted misclassifications) of the ensemble so far, so it directly attacks bias. A boosted ensemble of shallow, high-bias stumps can approximate an arbitrarily complex function given enough rounds.
The costs mirror the benefits. Bagging’s trees can be built in parallel and are robust to noisy labels, since no single bad example dominates any one model’s training. Boosting is inherently sequential and more sensitive to label noise and outliers, since misclassified points get up-weighted round after round. Rule of thumb: if your base learner already has low bias but is unstable (a full-depth tree), bag it; if it’s stable but too weak (a decision stump, a shallow tree), boost it. Overfitting is also controlled differently — bagging rarely overfits as you add more models, while boosting can, so boosting needs early stopping or learning-rate shrinkage.