Machine Learning
Question
What are the types of Machine Learning?
Answer
A. Supervised Learning
In supervised learning, the model learns using labeled data, where the correct answer is already known.
The goal is to learn the relationship between input and output.
Example
Suppose you have student marks and know whether they passed.
Hours Studied2Fail5Pass8PassThe model learns:
More study hours usually lead to passing.
Later, if a student studies 6 hours, the model predicts "Pass."
Applications
- House price prediction
- Email spam detection
- Disease prediction
- Credit approval
B. Unsupervised Learning
Here, the data has no labels.
The algorithm tries to discover hidden structures or patterns on its own.
Example
A supermarket has customer purchase history but no predefined customer categories.
The algorithm groups customers into clusters such as:
- Frequent buyers
- Occasional buyers
- Premium customers
No one tells the algorithm these groups in advance—it discovers them.
Applications
- Customer segmentation
- Market basket analysis
- Recommendation systems
C. Reinforcement Learning
The model learns by interacting with an environment and receiving rewards or penalties based on its actions.
The goal is to maximize the total reward over time.
Example
A robot learns to walk:
- Correct movement → Reward
- Incorrect movement → Penalty
After many attempts, it learns the best walking strategy.
Applications
- Self-driving cars
- Robotics
- Chess
- Video games
More Machine Learning questions
What is Machine Learning?
Difference between AI, ML, and Deep Learning?
What is Underfitting?
What is a Machine Learning Model?
What is an Algorithm?
Difference between Classification and Regression?
What is Linear Regression?
What is Logistic Regression?
What is a Decision Tree?
What is Random Forest?
What is K-Means Clustering?