Antara 14 Oktober 2019 sampai 20 Oktober 2019

Akhirnya bisa kembali berbagai cerita, walaupun sebenarnya medium ini adalah wahana curhat saya. Oke, satu minggu kebelakang benar-benar satu minggu pengurasi emosi, lahir dan batin. Dimulai dengan…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Classical programming vs. Machine Learning in plain English

In this short article, I attempt to explain how Supervised Machine Learning is differentiated from classical programming, using the email spam detection example.

Many colleagues of mine ask me why there is so much hype around Machine Learning. Isn’t classical programming good enough? What’s an easy example demonstrating the need for Machine Learning over traditional programming? 🤔

That’s why I’ve decided to write a SIMPLE blog post to explain in plain English what Machine Learning is and how it differs from classical programming.

Classical Programming vs. Machine Learning

This image summarizes the core conceptual differences between Classical Programming and Machine Learning.

Let me explain it with a familiar example.

Assume that we want to write a program to identify if an email is a spam or not. 📧

In classical programming, we need email data and a set of rules to categorize emails. Therefore, we need to engage a human expert who will be able to determine rules capable of identifying an email as spam.

Such rules might be, for example, if an email contains the phrase “you are the big winner” or “I want to give you money”. Another case might be if an email comes from an unknown sender and talks about a prince and his massive fortune he wants to share with you, or if the email has multiple recipients worldwide.

You get the point!

💡Basically, we need to extract specific characteristics from emails (these characteristics are called Features in ML terminology) and apply our custom rules to them.

These rules combined will probably be able to categorize an email as spam or not. But it’s clear that the manual generation of these rules is a complex and painful process because it requires a human expert to develop them, and in the end, we can not be sure about the importance of each rule and the final performance of our program.

Here is where Machine Learning comes into play. 🤖

Machine Learning programs are also built on top of data, but the core distinction is that we don’t need any rules beforehand. Instead, we need a set of pre-categorized emails to train a Machine Learning model using them. After the training phase, the Machine Learning model will have developed its own rules, and it will be able to automatically identify an email as spam or not.

In conclusion, both classical programming and Machine Learning need data. But the main difference is that the human has to develop the rules in classical programming, while in ML, the machine can generate the rules based on the annotated data.

Thank you very much! See you at the next one!

I hope you liked this article. If you have any questions or just want to introduce yourself, don’t hesitate to reach out!

My name is Panos (Panagiotis) Papaemmanouil, and here are my contact details.

Add a comment

Related posts:

Summer Beach Merry Christmas Shirt

Help us become enlightened to the Summer Beach Merry Christmas Shirt world, so we can understand and grow togetherness Pope doesn’t even believe in his own religion or the need to convert people to…

KNOW YOUR BUYER PERSONA

A buyer persona is a fictional representation of a person who is thought to be a typical consumer of a business. A buyer persona is a marketing phrase that refers to the traits of a certain kind of…

Being a Tennessee Fan

Growing up in Knoxville, you don’t really have a choice. No, I’m not talking about whether or not you’re conservative or if you have an inexplicable affinity for Chick-Fil-A, but the fact that a…