Skip to main content

Types of Machine Learning (ML)


Types of Machine Learning (ML)



Machine Learning Algorithms helps computer system learn without being explicitly
programmed. These algorithms are categorized into supervised or unsupervised. Let us
now see a few algorithms:

Supervised machine learning algorithms

This is the most commonly used machine learning algorithm. It is called supervised
because the process of algorithm learning from the training dataset can be thought of as
a teacher supervising the learning process. In this kind of ML algorithm, the possible
outcomes are already known and training data is also labeled with correct answers. It can
be understood as follows:

Suppose we have input variables x and an output variable y and we applied an algorithm
to learn the mapping function from the input to output such as:

Y=f(x)
Now, the main goal is to approximate the mapping function so well that when we have
new input data (x), we can predict the output variable (Y) for that data.
Mainly supervised leaning problems can be divided into the following two kinds of
problems:

 Classification: A problem is called classification problem when we have the
categorized output such as “black”, “teaching”, “non-teaching”, etc.
 Regression: A problem is called regression problem when we have the real value
output such as “distance”, “kilogram”, etc.

Decision tree, random forest, knn, logistic regression are the examples of supervised
machine learning algorithms.

AI with Python

Unsupervised machine learning algorithms

As the name suggests, these kinds of machine learning algorithms do not have any
supervisor to provide any sort of guidance. That is why unsupervised machine learning
algorithms are closely aligned with what some call true artificial intelligence. It can be
understood as follows:
Suppose we have input variable x, then there will be no corresponding output variables as
there is in supervised learning algorithms.

In simple words, we can say that in unsupervised learning there will be no correct answer
and no teacher for the guidance. Algorithms help to discover interesting patterns in data.
Unsupervised learning problems can be divided into the following two kinds of problem:
Clustering: In clustering problems, we need to discover the inherent groupings in
the data. For example, grouping customers by their purchasing behavior.
Association: A problem is called association problem because such kinds of
problem require discovering the rules that describe large portions of our data. For
example, finding the customers who buy both x and y.
K-means for clustering, Apriori algorithm for association are the examples of unsupervised
machine learning algorithms.

Reinforcement machine learning algorithms

These kinds of machine learning algorithms are used very less. These algorithms train the
systems to make specific decisions. Basically, the machine is exposed to an environment
where it trains itself continually using the trial and error method. These algorithms learn
from past experience and tries to capture the best possible knowledge to make accurate
decisions. Markov Decision Process is an example of reinforcement machine learning
algorithms.

Comments