Source:- builtin.com
What is machine learning? How does it work? How much math is involved? An engineer breaks it all down.
Machine learning is the idea that computers can learn from examples and experience, without being explicitly programmed to do so. Instead of writing code, you feed data to the generic algorithm, and it builds logic based on the data given.
For example, one kind of algorithm is a classification algorithm. It can put data into different groups. The classification algorithm used to detect handwritten alphabets could also be used to classify emails into spam and not-spam.
A computer program is said to learn from experience E with some class of tasks T and performance measure P if its performance at tasks in T, as measured by P, improves with experience E.” -Tom M. Mitchell
Consider playing checkers:
E = the experience of playing many games of checkers
T = the task of playing checkers.
P = the probability that the program will win the next game.
EXAMPLES OF MACHINE LEARNING
There are many examples of machine learning. Here are a few examples of classification problems where the goal is to categorize objects into a fixed set of categories.
Face detection: Identify faces in images (or indicate if a face is present).
Email filtering: Classify emails into spam and not-spam.
Medical diagnosis: Diagnose a patient as having or not having a disease.
Weather prediction: Predict, for instance, if it will rain tomorrow.
NEED FOR MACHINE LEARNING
Machine learning is a field raised out of artificial intelligence (AI). Through the application of AI, we sought to build better and intelligent machines. But except for a few mere tasks — like finding the shortest path between point A and B, for example — we were unable to program more complex and constantly evolving challenges. Then came the realization that the only way to achieve more advanced tasks was to let the machine learn from its own input, similar to how a child learns from their surroundings. So machine learning was developed as a new capability for computers, and is now present in so many segments of technology we may not even realize it’s there.
Some data sets are so massive that the human brain needs help finding patterns, and this is where machine learning swings into action by helping people sift through large data sets faster.
If big data and cloud computing are gaining importance for their contributions, machine learning also deserves recognition for helping data scientists analyze large chunks of data via an automated process that saves time and effort.
The techniques we use for data mining have been around for years, but they’re not effective without the power to run algorithms. When you run deep learning with access to better data, the output leads to dramatic breakthroughs, which is why there’s such a need for machine learning.
TYPES OF MACHINE LEARNING
There are three kinds of machine learning algorithms:
a. Supervised learning
b. Unsupervised learning
c. Reinforcement learning
SUPERVISED LEARNING
Much of practical machine learning uses supervised learning.
In this type, the system tries to learn from the previous examples its given. (On the other hand, in unsupervised learning the system attempts to find the patterns directly from the example given.)
Speaking mathematically, supervised learning is when you have both input variables (x) and output variables (y) and can use an algorithm to derive the mapping function from the input to the output.
The mapping function is expressed as Y = f(X).
Example :
Supervised learning problems can be further divided into two parts, namely classification and regression:
Classification: A classification problem is when the output variable is a category or a group, such as “black” or “white,” or “spam” and “no spam.”
Regression: A regression problem is when the output variable is a real value, such as “Rupees” or “height.”
UNSUPERVISED LEARNING
In unsupervised learning, the algorithms are left to themselves to discover interesting structures in the data.
Mathematically, unsupervised learning is when you have only input data (x) and no corresponding output variables.
This is called unsupervised learning because unlike supervised learning there are no given correct answers and the machine itself finds the solutions.
Unsupervised learning problems can be further divided into association and clustering:
Association: An association rule learning problem is the need to discover rules that describe large portions of data, like “people who buy X also tend to buy Y.”
Clustering: A clustering problem is the need to discover inherent groupings in the data, such as grouping customers by purchasing behavior.
REINFORCEMENT LEARNING
A computer program will interact with a dynamic environment in which it must perform a particular goal, such as playing a game with an opponent or driving a car. The program is provided feedback in the form of rewards and punishments as it navigates its problem space.
Using this algorithm, the machine is trained to make specific decisions. It works this way: the machine is exposed to an environment where it continuously trains itself using trial and error method.