Machine Learning
Machine Learning
1. Introduction
data or past experience. We have a model defined up to some parameters, and learning is the
execution of a computer program to optimize the parameters of the model using the training data
or
past experience. The model may be predictive to make predictions in the future, or descriptive to
gain
Arthur Samuel, an early American leader in the field of computer gaming and artificial intelli-
gence,
coined the term “Machine Learning” in 1959 while at IBM. He defined machine learning as “the
field of
study that gives computers the ability to learn without being explicitly programmed.” However,
there is
no universally accepted definition for machine learning. Different authors define the term differ-
ently.
Definition of learning
A computer program is said to learn from experience E with respect to some class of tasks T and
performance measure P, if its performance at tasks T, as measured by P, improves with experi-
ence E.
Examples
• training experience: A sequence of images and steering commands recorded while observing a
human driver
A computer program which learns from experience is called a machine learning program or sim-
ply a learning program. Such a program is sometimes also referred to as a learner.
1. Data storage
Facilities for storing and retrieving huge amounts of data are an important component of the
learning process. Humans and computers alike utilize data storage as a foundation for advanced
reasoning.
• In a human being, the data is stored in the brain and data is retrieved using electrochemical sig-
nals.
• Computers use hard disk drives, flash memory, random access memory and similar devices to
store data and use cables and other technology to retrieve data.
2. Abstraction
The second component of the learning process is known as abstraction.Abstraction is the process
of extracting knowledge about stored data. This involves creating general concepts about the data
as a whole. The creation of knowledge involves application of known model sand creation of
new models.The process of fitting a model to a dataset is known as training. When the model has
been trained, the data is transformed into an abstract form that summarizes the original informa-
tion.
3. Generalization
The third component of the learning process is known as generalisation.The term generalization
describes the process of turning the knowledge about stored data into a form that can be utilized
for future action. These actions are to be carried out on tasks that are similar, but not identical, to
those what have been seen before. In generalization, the goal is to discover those properties of
the data that will be most relevant to future tasks.
4. Evaluation
Evaluation is the last component of the learning process.It is the process of giving feedback to
the user to measure the utility of the learned knowledge. Thisfeedback is then utilised to effect
improvements in the whole learning process
Let's understand supervised learning with an example. Suppose we have an input dataset of cats
and dog images. So, first, we will provide the training to the machine to understand the images,
such as the shape & size of the tail of cat and dog, Shape of eyes, colour,
height (dogs are taller, cats are smaller), etc. After completion of training, we
input the picture of a cat and ask the machine to identify the object and predict the output. Now,
the machine is well trained, so it will check all the features of the object, such as height, shape,
colour, eyes, ears, tail, etc., and find that it's a cat. So, it will put it in the Cat category. This is the
process of how the machine identifies the objects in Supervised Learning.
The main goal of the supervised learning technique is to map the input
variable(x) with the output variable(y). Some real-world applications of supervised
learning are Risk Assessment, Fraud Detection, Spam filtering, etc.
◦ Image Segmentation:
Supervised Learning algorithms are used in im-
age segmentation. In this process, image classi-
fication is performed on different image data
with pre-defined labels.
◦ Medical Diagnosis:
Supervised algorithms are also used in the medi-
cal field for diagnosis purposes. It is done by us-
ing medical images and past labelled data with
labels for disease conditions. With such a
process, the machine can identify a disease for
the new patients.
◦ Fraud Detection - Supervised Learning classifica-
tion algorithms are used for identifying fraud
transactions, fraud customers, etc. It is done by
using historic data to identify the patterns that
can lead to possible fraud.
◦ Spam detection - In spam detection & filtering,
classification algorithms are used. These algo-
rithms classify an email as spam or not spam.
The spam emails are sent to the spam folder.
◦ Speech Recognition - Supervised learning algo-
rithms are also used in speech recognition. The
algorithm is trained with voice data, and various
identifications can be done using the same, such
as voice-activated passwords, voice commands,
etc.
2. Unsupervised Machine Learn-
ing
Unsupervised learning is different from the Supervised learning technique; as its name suggests,
there is no need for supervision. It means, in unsupervised machine learning, the machine is
trained using the unlabeled dataset, and the machine predicts the output without any supervision.
In unsupervised learning, the models are trained with the data that is neither classified nor la-
belled, and the model acts on that data without any supervision.
Let's take an example to understand it more preciously; suppose there is a basket of fruit images,
and we input it into the machine learning model. The images are totally unknown to the model,
and the task of the machine is to find the patterns and categories of the objects.
So, now the machine will discover its patterns and differences, such as colour difference, shape
difference, and predict the output when it is tested with the test dataset.
Some popular algorithms of Association rule learning are Apriori Algorithm, Eclat, FP-
growth algorithm.
3. Semi-Supervised Learning
Semi-Supervised learning is a type of Machine Learning algorithm that
lies between Supervised and Unsupervised machine learning. It represents
the intermediate ground between Supervised (With Labelled training data) and Unsupervised
learning (with no labelled training data) algorithms and uses the combination of labelled and un-
labeled datasets during the training period.
Although Semi-supervised learning is the middle ground between supervised and unsupervised
learning and operates on the data that consists of a few labels, it mostly consists of unlabeled
data. As labels are costly, but for corporate purposes, they may have few labels. It is completely
different from supervised and unsupervised learning as they are based on the presence & absence
of labels.
We can imagine these algorithms with an example. Supervised learning is where a student is un-
der the supervision of an instructor at home and college. Further, if that student is self-analysing
the same concept without any help from the instructor, it comes under unsupervised learning.
Under semi-supervised learning, the student has to revise himself after analyzing the same con-
cept under the guidance of an instructor at college.
4. Reinforcement Learning
Reinforcement learning works on a feedback-based process, in which
an AI agent (A software component) automatically explore its sur-
rounding by hitting & trail, taking action, learning from experiences,
and improving its performance. Agent gets rewarded for each good action and get
punished for each bad action; hence the goal of reinforcement learning agent is to maximize the
rewards.
In reinforcement learning, there is no labelled data like supervised learning, and agents learn
from their experiences only.
The reinforcement learning process is similar to a human being; for example, a child learns vari-
ous things by experiences in his day-to-day life. An example of reinforcement learning is to play
a game, where the Game is the environment, moves of an agent at each step define states, and the
goal of the agent is to get a high score. Agent receives feedback in terms of punishment and re-
wards.
Due to its way of working, reinforcement learning is employed in different fields such as Game
theory, Operation Research, Information theory, multi-agent systems.
◦ Video Games:
RL algorithms are much popular in gaming appli-
cations. It is used to gain super-human perfor-
mance. Some popular games that use RL algo-
rithms are AlphaGO and AlphaGO Zero.
◦ Resource Management:
The "Resource Management with Deep Rein-
forcement Learning" paper showed that how to
use RL in computer to automatically learn and
schedule resources to wait for different jobs in
order to minimize average job slowdown.
◦ Robotics:
RL is widely being used in Robotics applications.
Robots are used in the industrial and manufac-
turing area, and these robots are made more
powerful with reinforcement learning. There are
different industries that have their vision of
building intelligent robots using AI and Machine
learning technology.
◦ Text Mining
Text-mining, one of the great applications of
NLP, is now being implemented with the help of
Reinforcement Learning by Salesforce company.
Advantages and Disadvantages of Rein-
forcement Learning
Advantages