You are on page 1of 3

Experiment No 6

60004190123
Vidhan Shah
CS-B/B3

Aim: To implement spam detection on relevant dataset.


Theory:
Classification problems can be broadly split into two categories: binary classification
problems, and multi-class classification problems. Binary classification means there are only
two possible label classes, e.g. a patient’s condition is cancerous or it isn’t, or a financial
transaction is fraudulent or it is not. Multi-class classification refers to cases where there are
more than two label classes. An example of this is classifying the sentiment of a movie
review into positive, negative, or neutral.
There are many types of NLP problems, and one of the most common types is
the classification of strings. Examples of this include the classification of movies/news
articles into different genres and the automated classification of emails into a spam or not
spam.
Understanding the problem is a crucial first step in solving any machine learning problem.
Explore and understand the process of classifying emails as spam or not spam. This is called
Spam Detection, and it is a binary classification problem.
The reason to do this is simple: by detecting unsolicited and unwanted emails, we can prevent
spam messages from creeping into the user’s inbox, thereby improving user experience.
Code & Output:
Conclusion: Thus, in this experiment we understood the concept of spam detection. We
explored and understood the process of classifying emails as spam or not spam. This is called
Spam Detection, and it is a binary classification problem. and implemented it in Python.

You might also like