Machine Learning Algorithms

Sayemuzzaman Siam
3 min readJan 11, 2025

--

๐Œ๐š๐œ๐ก๐ข๐ง๐ž ๐ฅ๐ž๐š๐ซ๐ง๐ข๐ง๐  ๐š๐ฅ๐ ๐จ๐ซ๐ข๐ญ๐ก๐ฆ๐ฌ ๐œ๐š๐ง ๐›๐ž ๐œ๐š๐ญ๐ž๐ ๐จ๐ซ๐ข๐ณ๐ž๐ ๐ข๐ง๐ญ๐จ ๐ญ๐ก๐ซ๐ž๐ž ๐ฆ๐š๐ข๐ง ๐ญ๐ฒ๐ฉ๐ž๐ฌ:โฃ

Three types of Machine Learning Algorithms

๐’๐ฎ๐ฉ๐ž๐ซ๐ฏ๐ข๐ฌ๐ž๐ ๐‹๐ž๐š๐ซ๐ง๐ข๐ง๐ :โฃ

In supervised learning, the algorithm learns from a labeled dataset, where the input data (features) is paired with the correct output (labels). The goal is to learn a mapping from inputs to outputs, making it suitable for tasks like classification and regression.โฃ

Machine learning from a labeled data.

โฃ๐’๐ฎ๐ฉ๐ž๐ซ๐ฏ๐ข๐ฌ๐ž๐ ๐‹๐ž๐š๐ซ๐ง๐ข๐ง๐  ๐‘๐ž๐š๐ฅ-๐‹๐ข๐Ÿ๐ž ๐„๐ฑ๐š๐ฆ๐ฉ๐ฅ๐ž:

Imagine youโ€™re teaching your child (Sam) about Fire๐Ÿ”ฅ and Rain๐ŸŒง. You show him pictures of ๐Ÿ”ฅ and ๐ŸŒง and tell him, โ€œThis is Fire๐Ÿ”ฅ, and this is Rain๐ŸŒง.โ€ Over time, Sam learns that the picture of ๐Ÿ”ฅ is called Fire, and ๐ŸŒง is called Rain. โฃThis learning process, where Sam learns from labeled examples is called ๐’๐ฎ๐ฉ๐ž๐ซ๐ฏ๐ข๐ฌ๐ž๐ ๐‹๐ž๐š๐ซ๐ง๐ข๐ง๐ .โฃโฃ

๐”๐ง๐ฌ๐ฎ๐ฉ๐ž๐ซ๐ฏ๐ข๐ฌ๐ž๐ ๐‹๐ž๐š๐ซ๐ง๐ข๐ง๐ :โฃ

Unsupervised learning involves working with unlabeled data, where the algorithm tries to find patterns or structures within the data and group them together. Common tasks include clustering and dimensionality reduction.โฃ

Machine categorized the fruits into two categories based on their shape

๐”๐ง๐ฌ๐ฎ๐ฉ๐ž๐ซ๐ฏ๐ข๐ฌ๐ž๐ ๐‹๐ž๐š๐ซ๐ง๐ข๐ง๐  ๐‘๐ž๐š๐ฅ-๐‹๐ข๐Ÿ๐ž ๐„๐ฑ๐š๐ฆ๐ฉ๐ฅ๐ž:

Here, you donโ€™t tell Sam what Fire๐Ÿ”ฅ and Rain๐ŸŒงare. Instead, Sam observes the two items and notices that they look different. He decides to group them into two categories without anyone telling him which is which.โฃ

This type of learning, where Sam organizes the data into groups on his own, is ๐”๐ง๐ฌ๐ฎ๐ฉ๐ž๐ซ๐ฏ๐ข๐ฌ๐ž๐ ๐‹๐ž๐š๐ซ๐ง๐ข๐ง๐ .โฃ

โฃ๐‘๐ž๐ข๐ง๐Ÿ๐จ๐ซ๐œ๐ž๐ฆ๐ž๐ง๐ญ ๐‹๐ž๐š๐ซ๐ง๐ข๐ง๐ :โฃ

In reinforcement learning, an agent learns to make decisions by interacting with an environment. It receives rewards or penalties based on its actions and aims to maximize cumulative rewards over time. This type of learning is often used in robotics, game-playing AI, and autonomous systems.โฃ

Supervised, Unsupervised then the third one is Reinforcement Learning

โฃ๐‘๐ž๐ข๐ง๐Ÿ๐จ๐ซ๐œ๐ž๐ฆ๐ž๐ง๐ญ ๐‹๐ž๐š๐ซ๐ง๐ข๐ง๐  ๐‘๐ž๐š๐ฅ-๐‹๐ข๐Ÿ๐ž ๐„๐ฑ๐š๐ฆ๐ฉ๐ฅ๐ž:

Reinforcement Learning(RL) is bit different than the Supervised and Unsupervised Learning. Itโ€™s works on Punishment and Reward system.

Imagine Sam is playing a game where his goal is to avoid getting wet in the rain๐ŸŒง.โฃ

The first time Sam goes outside without an umbrella, he gets wet (punishment)๐Ÿ˜ข.โฃ

The next time, Sam decides to take an umbrellaโ˜”. He stays dry and gets a (reward)๐Ÿ˜Š.โฃ

Over time, Sam learns that taking the umbrella leads to a reward, while forgetting it leads to a punishment. As Sam keeps playing the game, he gets better at making the right decision, taking the umbrella to avoid getting wet and earning rewards!โฃ

โฃThis is ๐‘๐ž๐ข๐ง๐Ÿ๐จ๐ซ๐œ๐ž๐ฆ๐ž๐ง๐ญ ๐‹๐ž๐š๐ซ๐ง๐ข๐ง๐ , where the agent (Sam) learns by interacting with the environment and receiving feedback (rewards or punishments) for his actions.โฃโฃ

While there are other specialized types of ML algorithms, these three: Supervised Learning, Unsupervised Learning, and Reinforcement Learning are considered the core categories.โฃ

Like

Comment

Share

--

--

Sayemuzzaman Siam
Sayemuzzaman Siam

No responses yet