Machine Learning (ML) is not just one thing. it comes in different types, based on how the algorithm learns from the data.

In this post, I’ll walk you through the 3 main types of machine learning, with clear explanations and my own examples that are easy to understand.

Machine Learning Algorithms can be classified into 3 types as follows :

🔸 Supervised Learning

🔸Unsupervised Learning 

🔸Reinforcement Learning


1. Supervised Learning – Learning with Labels

Supervised Learning is a machine learning technique. In supervised learning, the model is trained with labeled data, meaning that each input has an associated correct output. The goal is for the model to learn a mapping from inputs to outputs and then to be able to predict outputs for new and unseen data.

The model learns by studying examples, such as photos of cats and dogs labeled as "cat" or "dog." It finds patterns in the data and learns how to predict the correct output for future inputs. 



 It can mainly be divided into two main types: classification, which involves predicting categories, and regression, which involves predicting continuous numerical values.



Supervised algorithms include Linear Regression, Decision Trees, and Support Vector Machines.

The key benefit of supervised learning is that it gives accurate predictions when trained on good-quality data. However, it requires a large amount of labelled data, which can be time-consuming to prepare.

Examples of supervised learning like spam email detection, credit scoring, medical diagnosis, and image recognition.

2. Unsupervised Learning – Discovering Hidden Patterns

Unsupervised Learning is a type of machine learning where the model is given unlabelled data. The algorithm is expected to learn from the data by discovering patterns or groupings on its own from the unlabelled data without supervision. Unlike supervised learning, Unsupervised Learning does not tell the algorithm what to do or what outputs to look for. The model learns structure and finds useful patterns in the data. This method doesn’t need labelled data, which makes it ideal for exploring unknown or large datasets. 

Clustering is the common application of unsupervised learning, grouping items with similar characteristics together.

For example, online stores often use unsupervised learning to segment customers together by shopping behavior.

Common algorithms in unsupervised learning include K-Means Clustering, Hierarchical Clustering, and PCA (Principal Component Analysis) used in determining data relationships.

 While unsupervised learning can identify hidden insights, it is sometimes difficult to understand the insights without further interpretation. Unsupervised learning can be a very powerful way of identifying present trends and patterns that may exist, and you didn’t know existed.


3. Reinforcement Learning – Learning by Doing

Reinforcement Learning (RL) is a dynamic learning method where an agent interacts with an environment to achieve a goal through trial and error. The agent receives rewards for good actions and penalties for bad ones, learning an optimal policy over time. 
Unlike supervised and unsupervised learning, RL focuses on sequential decision-making, making it ideal for robotics, gaming, and autonomous systems.

Popular algorithms include Q-Learning and Deep Q-Networks (DQN). Training can be time-consuming due to the need for extensive simulations. However, RL excels in complex, adaptive scenarios where predefined data is unavailable. This method is inspired by how humans and animals learn from experience.

Reinforcement learning is commonly used in robotics, video game AI, and self-driving cars, where the agent must make decisions in real time. It’s also used in finance and resource management, where the system must optimize results over time. 




Kindly follow my blog and stay tuned for upcoming posts on Supervised Learning, Unsupervised Learning, and Reinforcement Learning.

I’ll be breaking each one down in a beginner-friendly way with simple examples, so you can learn step by step. 

Thank You!