{"id":6829,"date":"2021-12-10T07:44:28","date_gmt":"2021-12-10T06:44:28","guid":{"rendered":"https:\/\/immune.institute\/?p=6829"},"modified":"2021-12-10T07:44:28","modified_gmt":"2021-12-10T06:44:28","slug":"metodos-de-bagging-y-de-boosting-diferencia","status":"publish","type":"post","link":"https:\/\/immune.institute\/en\/blog\/metodos-de-bagging-y-de-boosting-diferencia\/","title":{"rendered":"Bagging and boosting methods: What is the difference?"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Betting on a profession of the future is synonymous with betting on technology. And one of the safest bets for scientists is, without a doubt, the <\/span><a href=\"https:\/\/immune.institute\/en\/7-ejemplos-de-uso-de-inteligencia-artificial-en-nuestro-dia-a-dia\/\"><span style=\"font-weight: 400;\">Artificial Intelligence<\/span><\/a><span style=\"font-weight: 400;\">. And within it, there is the branch of the <\/span><b>Machine Learning<\/b><span style=\"font-weight: 400;\"> which offers a multitude of professional opportunities.<\/span><\/p>\n<blockquote>\n<p style=\"text-align: center;\"><span style=\"font-weight: 400;\">Machine Learning is a technological speciality that straddles AI and Data Science and seeks to use data and algorithms to mimic human learning, improving its accuracy.&nbsp;<\/span><\/p>\n<\/blockquote>\n<p><b>These algorithms can predict almost any type of variable.<\/b><span style=\"font-weight: 400;\">This is why we can use machine learning in all kinds of sectors of work.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The learning of these machines or pieces of <\/span><a href=\"https:\/\/immune.institute\/en\/proceso-desarrollo-software-ciclo-vida\/\"><span style=\"font-weight: 400;\">software<\/span><\/a><span style=\"font-weight: 400;\"> is continuous. Gradually, they acquire more data and thus become more intelligent; they are able to understand human behaviour.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Assembled machine learning algorithms<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The <\/span><b>assembled algorithms or assemblies<\/b><span style=\"font-weight: 400;\"> are a type of machine learning algorithm that improves generalisation by using different combination strategies.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In other words: <\/span><b>are the union of several simple algorithms that form a more complex and powerful one.<\/b><span style=\"font-weight: 400;\">.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">It is worth noting that, although there are different types of ensemble algorithms such as majority voting, bagging, boosting or stacking in machine learning, in this post we only want to highlight <\/span><b>boosting and bagging.<\/b><span style=\"font-weight: 400;\"> Therefore, we will explain the bagging and boosting methods and their difference in detail below.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Bagging<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Firstly, it should be noted that both <\/span><b>bagging and boosting methods serve to reduce variance<\/b><span style=\"font-weight: 400;\"> (or variability of the data, with respect to the mean) in learning statistics.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">That said, bagging is an aggregation <\/span><b>Bootstrap<\/b><span style=\"font-weight: 400;\"> (a set of open source tools used in web development) that achieves the combination of different models, starting from an initial family, which reduces variance and avoids over-fitting. In other words, that <\/span><b>when we use bagging we are employing different machine learning models<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This methodology makes <\/span><b>predictive errors are compensated for<\/b><span style=\"font-weight: 400;\">The model is trained on subsets - which choose samples with repetition, randomly - from the global training set.&nbsp;<\/span><\/p>\n<p><b>The bagging method is widely used with so-called decision trees.<\/b><span style=\"font-weight: 400;\"> Do you know what they consist of?<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Definition of Random Forest<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">First of all, <\/span><b>Decision trees are those prediction models made up of binary rules.<\/b><span style=\"font-weight: 400;\">. In other words: yes or no.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">These decision trees form what are called Random Forest Bootstrap models or <\/span><b>random forests, combined with bagging<\/b><span style=\"font-weight: 400;\">. In fact, their samples are somewhat different and the prediction is made from a new observation, which has been previously added to the individual trees of each model.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">These random forests are widely used in bagging, due to their performance and speed.&nbsp;<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Boosting<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">In contrast to bagging (which is known for its speed), boosting is a general methodology of <\/span><b>slow learning<\/b><span style=\"font-weight: 400;\">. In this method, a wide variety of models that are obtained from a method with poor prediction are combined in order to produce a better predictor.<\/span><\/p>\n<blockquote>\n<p style=\"text-align: center;\"><span style=\"font-weight: 400;\">Thus, shallowly constructed decision trees, small and highly combinable trees, are used here.&nbsp;<\/span><\/p>\n<\/blockquote>\n<p><span style=\"font-weight: 400;\">Likewise, <\/span><b>boosting is an attempt to fix the prediction errors of previous models.<\/b><span style=\"font-weight: 400;\">. Sequenced trees seeking to improve on the previous classification.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">An additive model, where more weight is given to misclassified samples than to those that are well classified.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Dedicate yourself to machine learning with IMMUNE<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">At the IMMUNE Institute of Technology we have different complementary trainings so that you will never ask again about \"bagging and boosting methods: what's the difference\". <\/span><b>At IMMUNE you will be able to become an expert in machine learning.<\/b><\/p>\n<p><span style=\"font-weight: 400;\">To begin with, we have the <\/span><a href=\"https:\/\/immune.institute\/en\/ingenieria-software\/\"><span style=\"font-weight: 400;\">Degree in Software Development Engineering<\/span><\/a><span style=\"font-weight: 400;\">as well as with our <\/span><a href=\"https:\/\/immune.institute\/en\/data-science\/\"><span style=\"font-weight: 400;\">Master in Data Science<\/span><\/a><span style=\"font-weight: 400;\">with which you can become a <\/span><a href=\"https:\/\/immune.institute\/en\/por-que-se-demandan-tantos-data-scientists\/\"><span style=\"font-weight: 400;\">data scientist<\/span><\/a><span style=\"font-weight: 400;\">. Also, if you prefer it by time, we have this one. <\/span><a href=\"https:\/\/immune.institute\/en\/data-analytics\/#mas-informacion\"><span style=\"font-weight: 400;\">Data Analytics Bootcamp<\/span><\/a><span style=\"font-weight: 400;\"> or this one on <\/span><a href=\"https:\/\/immune.institute\/en\/voice-tech\/\"><span style=\"font-weight: 400;\">Voice Tech<\/span><\/a><span style=\"font-weight: 400;\">Welcome to the training of the present and the future!&nbsp;&nbsp;<\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>Apostar por una profesi\u00f3n del futuro es sin\u00f3nimo de apostar por la tecnolog\u00eda. Y una de las apuestas m\u00e1s seguras (valga la redundancia) para los cient\u00edficos es, sin duda, la Inteligencia Artificial. Y dentro de ella, existe la rama del Machine Learning que ofrece multitud de salidas profesionales. Machine Learning es una especialidad tecnol\u00f3gica que [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":7395,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_crdt_document":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-6829","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/immune.institute\/en\/wp-json\/wp\/v2\/posts\/6829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/immune.institute\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/immune.institute\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/immune.institute\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/immune.institute\/en\/wp-json\/wp\/v2\/comments?post=6829"}],"version-history":[{"count":0,"href":"https:\/\/immune.institute\/en\/wp-json\/wp\/v2\/posts\/6829\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/immune.institute\/en\/wp-json\/wp\/v2\/media\/7395"}],"wp:attachment":[{"href":"https:\/\/immune.institute\/en\/wp-json\/wp\/v2\/media?parent=6829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/immune.institute\/en\/wp-json\/wp\/v2\/categories?post=6829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/immune.institute\/en\/wp-json\/wp\/v2\/tags?post=6829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}