1/23
Looks like no tags are added yet.
Supervised learning
It is a type of machine learning where a model learns from labelled
data, meaning each input has a correct output.
Each input has a known output
Adjusts itself to reduce prediction errors
Make accurate predictions on new data
Main features of Supeervised learning
Classification
Regression
Types of Supervised Learning:
Classification
Type of supervised learning where the output is a categorical variable (e.g., spam vs. non-spam emails, yes vs. no).
Regression
Type of supervised learning where the output is a continuous variable (e.g., predicting house prices, stock prices).
Collect Labeled Data
Split the Dataset
Train the Model
Validate and Test the Model
Deploy and Predict on New Data
Steps of Supervised Learning
Collect Labeled Data
Gather a dataset where each input has a known correct output (label).
Split the Dataset
Divide the data into training data (about 80%) and testing data (about 20%). The model will learn from the training data and be evaluated on the testing data.
Train the Model
Feed the training data (inputs and their labels) to a suitable supervised learning algorithm. The model tries to find patterns that map inputs to correct outputs.
Validate and Test the Model
Evaluate the model using testing data it has never seen before. The model predicts outputs and these predictions are compared with the actual labels to calculate accuracy or error.
Deploy and Predict on New Data
Once the model performs well, it can be used to predict outputs for completely new, unseen data.
K-Nearest Neighbors (kNN)
Linear Regression
Non-Linear Regression
Logistic Regression
Polynomial Regression
Naive Bayes Classifier
Decision Tree
Random Forest
Neural Networks
Supervised Learning Algorithms
K-Nearest Neighbors (kNN)
Predicts based on the closest data points. Results depend on the value of k and distance measure.
Linear regression
it is used to identify the relationship between a continuous dependent variable and one or more independent variables. It is typically used to make predictions about future outcomes.
Non-Linear Regression
In these cases, outputs must be modeled with a _____ function, and it expresses a relationship between variables through a ____, or curved, line, and its models can handle complex relationships with many parameters.
Logistic Regression
is a type of supervised learning classification algorithm that is used to predict a binary output variable, and it handles categorical dependent variables—when they have binary outputs, such as true or false or positive or negative.
polynomial regression
It models a relationship between variables on a graph, and the functions used in this express this relationship through an exponential degree. Also, it is a special case of regression where input features are raised to powers, allowing linear models to fit nonlinear patterns.
Naive Bayes Classifier
Based on probability and Bayes’ theorem, assuming features are independent of each other. It is a classification algorithm that adopts the principle of class conditional independence from Bayes’ theorem.
Decision Tree
Uses a tree-like structure where each node represents a decision and each leaf represents an outcome.
Random Forest
Combines multiple decision trees to improve accuracy and reduce overfitting. It is a flexible supervised machine learning algorithm used for both classification and regression purposes.
Neural Networks
These are brain-inspired machine learning models trained on labeled input-output pairs to map features to target values or categories. They consist of interconnected nodes (neurons) organized into layers.
Generalization
is a trained model's ability to make accurate predictions on new, unseen data and without this, a model may perform well on the data it was trained on but fail when applied to real-world inputs.
Overfitting
It occurs when a model learns the training data too precisely. Rather than identifying the patterns that distinguish signal from noise, this model memorizes specific training examples, including their noise, outliers, and random variation.
Underfitting
occurs when a model is too simple to represent the structure of the data. An underfit model makes overly restrictive assumptions about the data's form, and this shows up in the training error: