Machine Learning
Machine Learning
Have you ever went for grocery shopping? What do you do before going to the
market?
These machine learning algorithms use the patterns contained in the training
data to perform classification and future predictions. Whenever any new input
is introduced to the ML model, it applies its learned patterns over the new
data to make future predictions. Based on the final accuracy, one
can optimize their models using various standardized approaches.
In this way, Machine Learning model learns to adapt to new examples and
produce better results. Next in Machine Learning tutorial is its types. Have a
look –
Types of Machine Learning
Machine Learning Algorithms can be classified into 3 types as follows –
Supervised Learning
Unsupervised Learning
Reinforcement Learning
Supervised learning
Supervised learning is that the machine learning task of learning a function
that maps an input to an output supported example input-output pairs.
In Supervised Learning, the dataset on which we train our model is labeled.
There is a clear and distinct mapping of input and output. Based on the
example inputs, the model is able to get trained in the instances.
An example of supervised learning is spam filtering.
Based on the labeled data, the model is able to determine if the data
is spam or ham. This is an easier form of training.
Spam filtering is an example of this type of machine learning algorithm.
Unsupervised Learning
Unsupervised Learning may be a machine learning technique during which
the users don’t got to supervise the model. Instead, it allows the model to figure
on its own to get patterns and knowledge that was previously undetected. It
mainly deals with the unlabeled data.
In Unsupervised Learning, there is no labeled data. The algorithm identifies
the patterns within the dataset and learns them. The algorithm groups the data
into various clusters based on their density. Using it, one can
perform visualization on high dimensional data.
One example of this type of Machine learning algorithm is the Principle
Component Analysis.
Furthermore, K-Means Clustering is another type of Unsupervised Learning
where the data is clustered in groups of a similar order. The learning process
in Unsupervised Learning is solely on the basis of finding patterns in the data.
After learning the patterns, the model then makes conclusions.
Reinforcement Learning
Reinforcement learning is one among three basic machine learning
paradigms, alongside supervised learning and unsupervised learning.
1. Regression
Regression models are used extensively to predict values based on
the variables that are dependent on several factors.
The most common example of regression is Linear Regression where there is
a linear relationship or correlation between the predictor variable and
the response variable.
There are also other types of regression such as ARIMA regression that makes
use an auto-correlation regression model to forecast continuous values provided
by the time-series data.
They are used in forecasting the stock prices and other values that are based on
time.
2. Decision Tree Learning
Decision Trees are a supervised type of machine learning algorithms. These
trees are mainly used for predictive modeling. We create a decision tree that is
able to take decisions based on user input.
Decision Trees can be used for both regressions as well as classification. These
trees are used to provide graphical outputs to the user based on
several independent variables.
3. Support Vector Machines
Support Vector Machines or SVMs are machine learning algorithms that are
used to classify data into two categories or classes.
It is a type of supervised learning algorithms that makes use of several types
of kernels to classify the data. Based on the prediction performed, it can
categorize whether it falls into one class or any other class.
With the help of SVMs, one can perform both linear as well as non-
linear classification. An SVM classifier divides the data into two classes using
a hyperplane.
4. Association Rule Learning
Association Rule Mining is used for finding relationships between several
variables that are present in the database. It is a type of data mining technique
through which you can discover association between several items. It applied
in sale industries mostly to predict if the customer will buy item Y if he has
purchased the item X.
For example – if we take a fruit basket, the machine will first classify the fruit
with its shape and color and would confirm the fruit name.
If one searches for grapes, then machine learning from its training data (basket
containing fruits) will use the prior knowledge.
It will then apply the knowledge to test data and will then provide you with
the results.
In supervised learning, we start with a dataset that has training examples, each
example has an associated label that identifies it.
2. Unsupervised Learning
Unsupervised learning may be a sort of algorithm that learns patterns
from untagged data.
In unsupervised learning, the training of the machine is done
using information which is neither classified nor labeled.
The machine learning algorithm acts on information without guidance. It
groups unsorted information according to similarities, patterns,
and differences without any prior training or supervision.
Since there is no training given to the machine, the machine itself finds
the hidden structure in unlabeled data and interprets it.
So, suppose if the machine is provided with the image of a pen and pencil and
its information is not available then it can be categorized according to
the similarities, patterns, and differences. It is basically differentiated on the
basis of pre-defined notions. It is getting used for clustering, dimensionality
reduction, feature learning, density estimation, etc.
The machine can estimate what kind of groups it can form to differentiate.
For example – a wooden stick with a cap can be a pen and with no cap a pencil.
With no learning and no training, the machine tries to interpret itself.
3. Reinforcement Learning
Reinforcement learning is a very interesting kind of learning. There’s no
answer key that can tell what’s right. But, the reinforcement learning agent still
decides how to act to perform its task.
Reinforcement learning is a neighborhood of machine learning concerned with
how intelligent agents need to take actions in an environment so as to maximize
the notion of cumulative reward.
Reinforcement learning is one among three basic machine learning paradigms,
alongside supervised learning and unsupervised learning.
Reinforcement learning may be a sort of Machine Learning algorithm
which allows software agents and machines to automatically determine the
perfect behavior within a selected context, to maximize its performance. This
machine learning technique is all about taking actions that
are suitable and maximize the reward in a particular situation.
It is when the learner receives rewards and punishments for their actions.
For example – In a given scenario, the reward could be utility and the agent
could be told to receive as much utility as possible in order to “win”.
Basically, the agent decides what to do to perform the given task. Now, since
the training dataset is missing, it is bound to learn from its experience.
Summary
These are just the basics of machine learning, machine learning has more to it.
It is the core of our journey towards artificial general intelligence.
In no time, this will change the industry and have a massive impact on our day-
to-day lives. That is why I believe that machine learning is worth
understanding. If this is not related to your profession, it is not an issue.