About Lesson
-
Classification:
- Classification is used when the output variable (also known as the target) falls into a discrete set of classes. These classes can represent different categories, labels, or groups.
- Examples include:
- Spam vs. Ham: Determining whether an email is spam or not.
- Handwritten Digit Recognition: Assigning a digit label (0 to 9) to an image of a handwritten digit.
- Medical Diagnosis: Identifying whether a patient has a specific disease (e.g., cancer or not).
- Algorithms commonly used for classification include:
- Nearest Neighbor: Assigns the most frequent class label among the nearest neighbors.
- Decision Trees: Builds a tree-like structure to make decisions based on features.
- Support Vector Machines (SVM): Finds a hyperplane that best separates classes.
- Logistic Regression: Estimates the probability of belonging to a particular class.
-
Regression:
- Regression predicts a continuous numerical value (not limited to integers) based on input features.
- Examples include:
- Predicting House Prices: Given features like square footage, location, and number of bedrooms, predict the house price.
- Stock Market Forecasting: Predicting the future stock price based on historical data.
- Temperature Prediction: Forecasting tomorrow’s temperature.
- Linear regression is a common technique for regression tasks. It models the relationship between input features and the output variable using a linear equation:
-
y = mx + b
- where:
-
y
-
- where:
-
Join the conversation