Machine Learning is Conquering Explicit Programming
Last Updated on July 30, 2020 by Editorial Team
Author(s): Vaibhav Khandelwal
Machine Learning, Opinion
Are machines better thanΒ humans?
Before we proceed further to this post let us first understand what is a binary classification. So letβs understand this by a very simple instance. You are at home and itβs lunchtime, your mom comes to you and asks if you are hungry and want to have your lunch, your answer will be either βyesβ or βnoβ. You only have two options to reply i.e. binary options. Letβs take another example of a student who has just received his result of grade 12 the result will be βpassedβ or βfailedβ. These two examples fall under the binary classification as they have two options. Now letβs see how expert systems or rule-based systems are used for Binary Classification.
The expert system in Binary Classification:
The task of the machine is to check whether the image given to a machine contains text orΒ not?
To understand this letβs see how Humans make decisions?
Consider the Health domain: Suppose a doctor is examining the patient and he needs to check whether the patient has Dengue orΒ not?
The doctor is looking at several factors like Skin rash, fever, headache, cold cough, vomiting, and decides whether the person has dengue orΒ not.
The doctor checked one of the patients with the shown symptoms and did not find theΒ dengue.
The doctor then checked another patient and found most of the symptoms were there which were enough for the doctor to declare the patient hasΒ Dengue.
So now the question arises how the doctor is making all such decisions??
The answer to this is historical data. The doctor had encountered several patients and based on his experience he is now making all such decisions whether a patient has dengue orΒ not.
The below-shown image contains the historical data of four patients.
As machines understand only the numbers so letβs take βCROSSβ as β0β and βTICKβ as β1β, so the historical data will appear asΒ follow:
So what are the Semantics of decision making byΒ doctors?
2 things that play the role there: Feature andΒ Rules.
Features are the inputs or symptoms that we are taking- Skin rash, fever, headache, cold cough and vomiting.
Rules are the permutations of symptoms going on in the head of the doctor which decides whether dengue is there i.e suppose if 2 or more symptoms are positive or 3 or more are positive then the person hasΒ dengue.
Now we want to outsource these rules to a machine in the form of a program so that the machine can execute the program by taking some input and give us the output. Weβll write an if-else condition and based on the conditions the program will give theΒ output.
Limitations of an expertΒ system:
Letβs take a situation here: Suppose you have a company named Data Science Arena and your company is to hire a person for aΒ job.
So for hiring someone, the hiring manager is going to look at various parameters like- 10th marks, 12th marks, if he/she is a graduate, what was the CGPA, what all projects have been done, and some other parameters. The hiring manager will make different permutations of tasks in his/her mind and then heβll decide whether to select or reject a candidate.
But if the tasks of hiring are comparatively large then it would be very difficult for any human to make the permutations of the tasks and the company will prepare a program to be fed to the machine to make it process and give theΒ output.
Thus comes the first limitation– If the number of features (tasks here) are more then it wonβt be possible to come up with the different permutation easily and thus difficult to bring out an if-else programΒ easily.
Also as there would be a large number of historical data of the employees who had been hired and also the ones who have left the company. So looking at the different scenarios out of the large historical data it wonβt be easily possible for a human to write a program out ofΒ it.
The data appears to be asΒ follows:
Looking at the data one can see that the rules for forming the permutations would be tooΒ complex.
Thus comes the second limitation– Even if anyhow you came up with the rules but it wonβt be possible to remember all the rules as the rules would be too muchΒ complex.
Also sometimes the rules are inexpressible i.e. suppose the hiring manager hired a person based on his honesty. So how can we express this as aΒ rule?
As honesty canβt be expressed in any quantitative form thus making it as the third limitation.
So to solve the above limitations we use machine learning. It takes the inputs and forms a function f(x1, x2,Β β¦ xn) that includes all our permutations and based on the input provided, gives us the output. The function formed can be a linear or of any degree based on theΒ inputs.
Thanks for reading. Hope this blog gave you some insights about how machine learning is conquering the explicit programming. π
Machine Learning is Conquering Explicit Programming was originally published in Towards AIβββMultidisciplinary Science Journal on Medium, where people are continuing the conversation by highlighting and responding to this story.
Published via Towards AI