{"id":1014,"date":"2020-03-09T10:00:00","date_gmt":"2020-03-09T09:00:00","guid":{"rendered":"http:\/\/cmagazine.test\/why-do-some-machine-learning-models-fail\/"},"modified":"2022-01-05T20:00:38","modified_gmt":"2022-01-05T19:00:38","slug":"why-do-some-machine-learning-models-fail","status":"publish","type":"post","link":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/","title":{"rendered":"Why do some machine learning models fail?"},"content":{"rendered":"\t\t\t\t<div class=\"wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-7185a126      \"\n\t\t\t\t\tdata-scroll= \"1\"\n\t\t\t\t\tdata-offset= \"30\"\n\t\t\t\t\tstyle=\"\"\n\t\t\t\t>\n\t\t\t\t<div class=\"uagb-toc__wrap\">\n\t\t\t\t\t\t<div class=\"uagb-toc__title\">\n\t\t\t\t\t\t\tTable Of Contents\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-toc__list-wrap \">\n\t\t\t\t\t\t<ol class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#a-good-path-from-astrophysics-to-neuroscience\" class=\"uagb-toc-link__trigger\">A good path from astrophysics to neuroscience<\/a><li class=\"uagb-toc__list\"><a href=\"#machine-learnng-linearity-is-broken\" class=\"uagb-toc-link__trigger\">Machine Learnng: Linearity is broken<\/a><li class=\"uagb-toc__list\"><a href=\"#deciding-what-model-suits-you-best-real-world-apps\" class=\"uagb-toc-link__trigger\">Deciding what model suits you best: real world apps<\/a><li class=\"uagb-toc__list\"><a href=\"#conclusions\" class=\"uagb-toc-link__trigger\">Conclusions<\/a><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\n\n<p class=\" eplus-gurqKq\">Everything is automatic and effortless with machine learning algorithms, right? Big data is all you need, after all. You have a dataset, you split it when necessary, you take one machine learning model, you <a class=\"ek-link\" href=\"https:\/\/www.codemotion.com\/magazine\/dev-hub\/machine-learning-dev\/understanding-ai-training\/\">train<\/a> it and the miracle of a correct classification or prediction shines its light on you, your name, your business. Artificial intelligence is easy, isn&#8217;t it? No, it is not: this is only advertising.<\/p>\n\n\n\n<p class=\" eplus-kJIPS7\">&#8220;Most Machine Learning talks present beautiful cases of success, but in reality <strong>models often fail to deliver the desired performance<\/strong>&#8220;, stated Rafael Garcia-Dias in the introduction to his speech at <strong><a class=\"ek-link\" href=\"https:\/\/events.codemotion.com\/conferences\/milan\/2019\/\">Codemotion Milan 2019<\/a><\/strong>. &#8220;It is not uncommon to see developers blaming certain models and even blacklisting certain models.&#8221;<\/p>\n\n\n\n<p class=\" eplus-RPqlsO\">Garcia-Dias is a Research associate at King&#8217;s College London whose main focus is on developing machine learning models based on structural MRI to diagnose patients. In many cases, he has found that repeated trial-and-error processes are required to find a good data\/algorithm combination, if one exists at all.<\/p>\n\n\n\n<p class=\" eplus-5mi4LC\">Data are nothing without control over the problem you are facing. &#8220;Only when you know that can you think about your model&#8221;, Garcia-Dias clarifies. &#8220;Be sure you understand your problem&#8221;: if you don&#8217;t have enough data, then generate it, even if this could prove expensive.<\/p>\n\n\n\n<h2 class=\"eplus-E5ZTMU wp-block-heading\">A good path from astrophysics to neuroscience<\/h2>\n\n\n\n<p class=\" eplus-GuzQgh\">Automated learning can help in branches of knowledge that are fascinating, but inaccessible to the human mind. Garcia-Dias offers really amazing examples from his career. He invested time in testing the chemical history of galaxies: &#8220;With machine learning tools you can understand where the interstellar gas in each of them comes from&#8221;. Your data constraints limit your performances: &#8220;not all clusters are distinguishable with today&#8217;s approaches&#8221;.<\/p>\n\n\n\n<p class=\" eplus-kYgfjU\">The second example from Rafael Garcia-Dias&#8217; work is an analysis of MRI scans. &#8220;We determine the brain age, then we compare it with the real age of the person&#8221;, explains the King&#8217;s College researcher; &#8220;the results can help diagnose some important diseases in time&#8221;.<\/p>\n\n\n\n<h2 class=\"eplus-6yJqVp wp-block-heading\">Machine Learnng: Linearity is broken<\/h2>\n\n\n\n<p class=\" eplus-PA94pk\">A common mistake researchers make is fostering misleading expectations about the process&#8217; linearity. First of all, each model has its own limitations, and the coder must be aware of these in order to be sure the reality will match the desired results.<\/p>\n\n\n\n<p class=\" eplus-vnKAM3\">One successful example of Rafael Garcia-Dias&#8217; experience is based on the <strong>k-means algorithm<\/strong>. It&#8217;s important to understand the underlying assumptions of your model. In k-means the basic distance is euclidean, and this is one constraint to the use of this model. It rarely works &#8216;as is&#8217;, and often needs much work on data and parameters. Moreover, there are many viable alternatives, such as <abbr title=\"Gaussian Mixture Modelling\">GMM<\/abbr> and DBscan.<\/p>\n\n\n\n<p class=\" eplus-Ix6Fck\"><strong>Gaussian Mixture Modelling<\/strong> is an extension to the k-means algorithm, assuming that all the data points are generated from a mixture of a finite number of Gaussian distributions with unknown parameters. The Scikit-learn library allows the use of GMM with several alternative strategies.<\/p>\n\n\n\n<p class=\" eplus-aU3dQs\"><strong>Density-based spatial clustering<\/strong> of applications with noise groups together points with many nearby neighbors.<\/p>\n\n\n\n<p class=\" eplus-pzPqep\">Garcia-Dias tested these three algorithms with different parameters, showing that very small changes can significantly alter the homogeneity score. If you have a feel for your data you can limit the number of trial tests you need to carry out.<\/p>\n\n\n\n<h2 class=\"eplus-vFPjkY wp-block-heading\">Deciding what model suits you best: real world apps<\/h2>\n\n\n\n<p class=\" eplus-tKXsV6\">Many different algorithms on the market have multiple libraries. <strong>You have to know what is behind their code<\/strong> in order to make good use of them. This great variety of development tools could generate a problem of choice. <strong>Coding for machine learning can look strange but it&#8217;s more or less like any other kind of programming<\/strong>: if you know one environment, you can learn any other environment.<\/p>\n\n\n\n<p class=\" eplus-U46URI\">Existing libraries can look inadequate for a particular goal, so the researcher may think of writing their own code. Is this usually a mistake?<\/p>\n\n\n\n<p class=\" eplus-E91WRz\">&#8220;<strong>I never write new libraries myself<\/strong>&#8220;, answers Rafael Garcia-Dias, &#8220;because that code is highly optimized and strongly reviewed. But I often look for other libraries in different languages&#8221;. <strong>Python<\/strong>&#8216;s libraries are often surpassed by R&#8217;s equivalents, to give one example.<\/p>\n\n\n\n<p class=\" eplus-ZLu5PR\">&#8220;Great programmers develop great libraries, and algorithms, all stuff that flows in the open-source software pool, sooner or later&#8221;. Each of these will have its own limitations to study and understand so that a user makes the best choice. It&#8217;s better to spend time looking for dummy classifiers and dummy regressors!<\/p>\n\n\n\n<h2 class=\"eplus-mZYDyD wp-block-heading\">Conclusions<\/h2>\n\n\n\n<p class=\" eplus-eVtBjO\">Bad models don&#8217;t exist, to be crystal clear. There are some silly, limiting mistakes to be avoided: it&#8217;s essential to be aware of the assumptions behind each model, and to really feel your database.<\/p>\n\n\n\n<p class=\" eplus-jlClwI\">The most important advice suggests a continuous process flux &#8211; &#8220;never quit thinking&#8221; &#8211; that looks well suited to both AI algorithms and real-life activities.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Everything is automatic and effortless with machine learning algorithms, right? Big data is all you need, after all. You have a dataset, you split it when necessary, you take one machine learning model, you train it and the miracle of a correct classification or prediction shines its light on you, your name, your business. Artificial&#8230; <a class=\"more-link\" href=\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/\">Read more<\/a><\/p>\n","protected":false},"author":8,"featured_media":938,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":3,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","_uag_custom_page_level_css":"","_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[35],"tags":[22],"collections":[],"class_list":{"0":"post-1014","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-machine-learning","8":"tag-codemotion-milan","9":"entry"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Machine Learning: why do some models fail? - Codemotion Magazine<\/title>\n<meta name=\"description\" content=\"An overview of the current use of machine learning algorithms: why these algorithms often fail, and why we should know how ML libraries work.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Why do some machine learning models fail?\" \/>\n<meta property=\"og:description\" content=\"An overview of the current use of machine learning algorithms: why these algorithms often fail, and why we should know how ML libraries work.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/\" \/>\n<meta property=\"og:site_name\" content=\"Codemotion Magazine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Codemotion.Italy\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-09T09:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-05T19:00:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Leo Sorge\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodemotionIT\" \/>\n<meta name=\"twitter:site\" content=\"@CodemotionIT\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Leo Sorge\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/machine-learning\\\/why-do-some-machine-learning-models-fail\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/machine-learning\\\/why-do-some-machine-learning-models-fail\\\/\"},\"author\":{\"name\":\"Leo Sorge\",\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/#\\\/schema\\\/person\\\/99fe84861e17797989e16094aac727d5\"},\"headline\":\"Why do some machine learning models fail?\",\"datePublished\":\"2020-03-09T09:00:00+00:00\",\"dateModified\":\"2022-01-05T19:00:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/machine-learning\\\/why-do-some-machine-learning-models-fail\\\/\"},\"wordCount\":819,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/machine-learning\\\/why-do-some-machine-learning-models-fail\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/CMM_wML_Garcia_1-scaled.jpg\",\"keywords\":[\"Codemotion Milan\"],\"articleSection\":[\"Machine Learning\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/machine-learning\\\/why-do-some-machine-learning-models-fail\\\/\",\"url\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/machine-learning\\\/why-do-some-machine-learning-models-fail\\\/\",\"name\":\"Machine Learning: why do some models fail? - Codemotion Magazine\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/machine-learning\\\/why-do-some-machine-learning-models-fail\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/machine-learning\\\/why-do-some-machine-learning-models-fail\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/CMM_wML_Garcia_1-scaled.jpg\",\"datePublished\":\"2020-03-09T09:00:00+00:00\",\"dateModified\":\"2022-01-05T19:00:38+00:00\",\"description\":\"An overview of the current use of machine learning algorithms: why these algorithms often fail, and why we should know how ML libraries work.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/machine-learning\\\/why-do-some-machine-learning-models-fail\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/machine-learning\\\/why-do-some-machine-learning-models-fail\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/machine-learning\\\/why-do-some-machine-learning-models-fail\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/CMM_wML_Garcia_1-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/CMM_wML_Garcia_1-scaled.jpg\",\"width\":900,\"height\":675,\"caption\":\"dav\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/machine-learning\\\/why-do-some-machine-learning-models-fail\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI\\\/ML\",\"item\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Machine Learning\",\"item\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/ai-ml\\\/machine-learning\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Why do some machine learning models fail?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/#website\",\"url\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/\",\"name\":\"Codemotion Magazine\",\"description\":\"We code the future. Together\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/#organization\",\"name\":\"Codemotion\",\"url\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/codemotionlogo.png\",\"contentUrl\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/codemotionlogo.png\",\"width\":225,\"height\":225,\"caption\":\"Codemotion\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Codemotion.Italy\\\/\",\"https:\\\/\\\/x.com\\\/CodemotionIT\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/#\\\/schema\\\/person\\\/99fe84861e17797989e16094aac727d5\",\"name\":\"Leo Sorge\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/60ef89012822fdaeb014dc2b17dcc78c3a835e1dfe86ede053fa46a91926fd29?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/60ef89012822fdaeb014dc2b17dcc78c3a835e1dfe86ede053fa46a91926fd29?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/60ef89012822fdaeb014dc2b17dcc78c3a835e1dfe86ede053fa46a91926fd29?s=96&d=mm&r=g\",\"caption\":\"Leo Sorge\"},\"description\":\"I hold a degree in electronics. I talk and write about science and technology in both real and close-to-real worlds since 1976. I frankly believe that business plan and singularity are excellent starts for science-fiction stories.\",\"url\":\"https:\\\/\\\/www.codemotion.com\\\/magazine\\\/author\\\/leo-sorge\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Machine Learning: why do some models fail? - Codemotion Magazine","description":"An overview of the current use of machine learning algorithms: why these algorithms often fail, and why we should know how ML libraries work.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/","og_locale":"en_US","og_type":"article","og_title":"Why do some machine learning models fail?","og_description":"An overview of the current use of machine learning algorithms: why these algorithms often fail, and why we should know how ML libraries work.","og_url":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/","og_site_name":"Codemotion Magazine","article_publisher":"https:\/\/www.facebook.com\/Codemotion.Italy\/","article_published_time":"2020-03-09T09:00:00+00:00","article_modified_time":"2022-01-05T19:00:38+00:00","og_image":[{"width":900,"height":675,"url":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled.jpg","type":"image\/jpeg"}],"author":"Leo Sorge","twitter_card":"summary_large_image","twitter_creator":"@CodemotionIT","twitter_site":"@CodemotionIT","twitter_misc":{"Written by":"Leo Sorge","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/#article","isPartOf":{"@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/"},"author":{"name":"Leo Sorge","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/99fe84861e17797989e16094aac727d5"},"headline":"Why do some machine learning models fail?","datePublished":"2020-03-09T09:00:00+00:00","dateModified":"2022-01-05T19:00:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/"},"wordCount":819,"publisher":{"@id":"https:\/\/www.codemotion.com\/magazine\/#organization"},"image":{"@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled.jpg","keywords":["Codemotion Milan"],"articleSection":["Machine Learning"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/","url":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/","name":"Machine Learning: why do some models fail? - Codemotion Magazine","isPartOf":{"@id":"https:\/\/www.codemotion.com\/magazine\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/#primaryimage"},"image":{"@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled.jpg","datePublished":"2020-03-09T09:00:00+00:00","dateModified":"2022-01-05T19:00:38+00:00","description":"An overview of the current use of machine learning algorithms: why these algorithms often fail, and why we should know how ML libraries work.","breadcrumb":{"@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/#primaryimage","url":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled.jpg","contentUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled.jpg","width":900,"height":675,"caption":"dav"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/why-do-some-machine-learning-models-fail\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codemotion.com\/magazine\/"},{"@type":"ListItem","position":2,"name":"AI\/ML","item":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/"},{"@type":"ListItem","position":3,"name":"Machine Learning","item":"https:\/\/www.codemotion.com\/magazine\/ai-ml\/machine-learning\/"},{"@type":"ListItem","position":4,"name":"Why do some machine learning models fail?"}]},{"@type":"WebSite","@id":"https:\/\/www.codemotion.com\/magazine\/#website","url":"https:\/\/www.codemotion.com\/magazine\/","name":"Codemotion Magazine","description":"We code the future. Together","publisher":{"@id":"https:\/\/www.codemotion.com\/magazine\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codemotion.com\/magazine\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codemotion.com\/magazine\/#organization","name":"Codemotion","url":"https:\/\/www.codemotion.com\/magazine\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/","url":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png","contentUrl":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/codemotionlogo.png","width":225,"height":225,"caption":"Codemotion"},"image":{"@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Codemotion.Italy\/","https:\/\/x.com\/CodemotionIT"]},{"@type":"Person","@id":"https:\/\/www.codemotion.com\/magazine\/#\/schema\/person\/99fe84861e17797989e16094aac727d5","name":"Leo Sorge","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/60ef89012822fdaeb014dc2b17dcc78c3a835e1dfe86ede053fa46a91926fd29?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/60ef89012822fdaeb014dc2b17dcc78c3a835e1dfe86ede053fa46a91926fd29?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/60ef89012822fdaeb014dc2b17dcc78c3a835e1dfe86ede053fa46a91926fd29?s=96&d=mm&r=g","caption":"Leo Sorge"},"description":"I hold a degree in electronics. I talk and write about science and technology in both real and close-to-real worlds since 1976. I frankly believe that business plan and singularity are excellent starts for science-fiction stories.","url":"https:\/\/www.codemotion.com\/magazine\/author\/leo-sorge\/"}]}},"featured_image_src":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled-600x400.jpg","featured_image_src_square":"https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled-600x600.jpg","author_info":{"display_name":"Leo Sorge","author_link":"https:\/\/www.codemotion.com\/magazine\/author\/leo-sorge\/"},"uagb_featured_image_src":{"full":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled.jpg",900,675,false],"thumbnail":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled-150x150.jpg",150,150,true],"medium":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled-300x225.jpg",300,225,true],"medium_large":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled-768x576.jpg",768,576,true],"large":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled.jpg",900,675,false],"1536x1536":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled.jpg",900,675,false],"2048x2048":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled.jpg",900,675,false],"small-home-featured":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled.jpg",100,75,false],"sidebar-featured":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled-180x128.jpg",180,128,true],"genesis-singular-images":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled-896x504.jpg",896,504,true],"archive-featured":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled-400x225.jpg",400,225,true],"gb-block-post-grid-landscape":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled-600x400.jpg",600,400,true],"gb-block-post-grid-square":["https:\/\/www.codemotion.com\/magazine\/wp-content\/uploads\/2019\/11\/CMM_wML_Garcia_1-scaled-600x600.jpg",600,600,true]},"uagb_author_info":{"display_name":"Leo Sorge","author_link":"https:\/\/www.codemotion.com\/magazine\/author\/leo-sorge\/"},"uagb_comment_info":0,"uagb_excerpt":"Everything is automatic and effortless with machine learning algorithms, right? Big data is all you need, after all. You have a dataset, you split it when necessary, you take one machine learning model, you train it and the miracle of a correct classification or prediction shines its light on you, your name, your business. Artificial&#8230;&hellip;","lang":"en","_links":{"self":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts\/1014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/comments?post=1014"}],"version-history":[{"count":5,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts\/1014\/revisions"}],"predecessor-version":[{"id":11770,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/posts\/1014\/revisions\/11770"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/media\/938"}],"wp:attachment":[{"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/media?parent=1014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/categories?post=1014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/tags?post=1014"},{"taxonomy":"collections","embeddable":true,"href":"https:\/\/www.codemotion.com\/magazine\/wp-json\/wp\/v2\/collections?post=1014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}