The topic is classification and regression, which are types of supervised machine learning. In supervised machine learning, we have labeled data, meaning the input data is mapped with the correct output, known as the label.
We come across two types of problems in supervised machine learning:
- Classification
- Regression
Classification
Classification is a type of machine learning where the output (label) is a categorical value. To better understand classification, consider the example of heart disease data. In the heart patient data, if a patient has a heart problem, they will be labeled as a patient, whereas a patient with no heart problem will be classified as Healthy.
Classification can involve two categories or multiple categories, which is known as a multi-class classification problem. For example, we can categorize patient conditions from Healthy to Critical:
- Healthy
- Minor Problem
- Critical
In this classification of heart data, Healthy, Minor Problem, and Critical are the classes (categories).
So, in classification, the machine learns from the input and output, and upon feeding new data, it classifies the new data based on its learning as Healthy or Critical.
Other examples of classification include:
- Email Spam Classification: Classifying an email as spam or not.
- Customer Churn: Determining if a customer will churn or not.
- Iris Flower Classification: The famous example of classifying iris flowers into different species.
We have different kinds of algorithms that deal with classification problems. I’ll write a blog on each of these algorithms:
- Logistic Regression
- Support Vector Machines
- Decision Trees
- Random Forest
- Naive Bayes
- K-Nearest Neighbors (KNN) models
Regression
Regression is another type of supervised machine learning where the output is a continuous value, such as price (PKR, DOLLAR) or weight. Regression is used when the data output is numerical, like predicting house prices. The dataset has different inputs with corresponding outputs as the house price. The machine learns from the data, and upon receiving new input values, it predicts the house price.
Another common example of a regression problem is stock price prediction or cryptocurrency price prediction.
Some common regression algorithms are:
- Linear Regression
- Polynomial Regression
- Support Vector Machine Regression
- Decision Tree Regression
Ready to dive deeper into the world of Data Science? Join me as we explore essential topics like Exploratory Data Analysis (EDA), Data Visualization, and building powerful Machine Learning models. Subscribe to my blog for the latest tutorials, insights, and practical tips.