Classification Algorithm in Machine Learning
Classification Algorithm in Machine Learning
Machine Learning
• The Classification algorithm is a Supervised Learning technique that is
used to identify the category of new observations on the basis of
training data. In Classification, a program learns from the given
dataset or observations and then classifies new observation into a
number of classes or groups. Such as, Yes or No, 0 or 1, Spam or Not
Spam, cat or dog, etc. Classes can be called as targets/labels or
categories.
• In classification algorithm, a discrete output function(y) is mapped to
input variable(x).
• y=f(x), where y = categorical output
• The best example of an ML classification algorithm
is Email Spam Detector.
• The main goal of the Classification algorithm is to identify
the category of a given dataset, and these algorithms are
mainly used to predict the output for the categorical data.
• Classification algorithms can be better understood using
the below diagram. In the below diagram, there are two
classes, class A and Class B. These classes have features
that are similar to each other and dissimilar to other
classes.
• The algorithm which implements the classification on a dataset is
known as a classifier. There are two types of Classifications:
• Binary Classifier: If the classification problem has only two possible
outcomes, then it is called as Binary Classifier.
Examples: YES or NO, MALE or FEMALE, SPAM or NOT SPAM, CAT or
DOG, etc.
• Multi-class Classifier: If a classification problem has more than two
outcomes, then it is called as Multi-class Classifier.
Example: Classifications of types of crops, Classification of types of
music.
Learners in Classification Problems:
Actual Negative
Actual Positive
Predicted Positive True Positive False Positive