Prac 5
Prac 5
Prac 5
Programming.
What is a Classification Algorithm?
A classification algorithm is a type of supervised machine learning algorithm
used to predict categorical outcomes. It learns from labelled data (i.e., data
where the output is known) to classify new observations into predefined
classes or categories. Classification algorithms are widely used for tasks such as
spam detection, disease diagnosis, sentiment analysis, fraud detection, etc.
How Does Classification Work?
Input: A dataset with features (independent variables) and labels
(dependent variables or class labels).
Training: The algorithm learns the relationship between input features
and the labels by finding patterns in the dataset.
Prediction: After training, the model can be used to predict the class
label for new, unseen data points based on the input features.
Output: A class label, which is either binary (e.g., spam or not spam) or
multi-class (e.g., types of diseases).