What is the difference between bagging and boosting?

Both techniques are used to create models that give us better results from simpler models.

On the one hand, bagging is responsible for running in parallel N times a simple algorithm and the most repeated (or average) is chosen by a voting system.
On the other hand, boosting is executed sequentially because each output of each algorithm is used to learn and assign weights depending on the previous errors.

Therefore, the main difference is that the bagging uses the algorithms independently and the boosting weights according to the previous errors.

bagging vs boosting

If you want more information, an example of boosting is the adaboost and an example of bagging is the random forest.


Your subscription could not be saved. Please try again.
Your subscription has been successful. Thank you for joining this great data world.

GET OUR NEWSLETTER

You'll get the latest posts delivered to your inbox.