→ كل المشاريع

email-spam-detection-using-machine-learning

بواسطة @supermariio

10

a machine learning model that can classify emails as spam or not spam! that includes a small Command Line user interface where we can input a sample email and test your model in action.

عن هذا المشروع

Spam Detector CLI Welcome to the Spam Detector CLI! This command-line tool helps you determine if an email is spam or not. Project Structure data manipulation/ : Data manipulation and visualization notebooks model/ : Trained model notebook Clone the repository: 2.Install Python dependencies: Usage Run the CLI with the email content: Example output: Data Visualization To better understand the dataset, I visualized the key aspects of the data, such as class distribution and common words in spam and ham emails. Class Distribution The dataset was imbalanced, with significantly more "Ham" emails than "Spam." This imbalance can bias the model toward predicting "Ham." To address this, I applied SMOTE (Synthetic Minority Oversampling Technique) to balance the dataset. The graph above shows the proportion of "Ham" and "Spam" emails before applying SMOTE. Word Frequency Analysis I created a word cloud to visualize the most frequent words in spam and ham emails. This helped identify distinct patterns in text, such as spam emails containing words like "Congratulations," "Free," and "Prize." Spam Word Cloud Ham Word Cloud

من ملف README الخاص بالمشروع على GitHub

النجوم
10
التفريعات
0
آخر تحديث
07/12/2024

أضف هذه الشارة إلى ملف README

أظهر أن مشروعك مُدرج على «صُنع في الجزائر».

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/email-spam-detection-using-machine-learning.svg)](https://www.madeinalgeria.dev/projects/email-spam-detection-using-machine-learning)

مشاريع ذات صلة