Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email_spam_classifier for issue #237 #238

Merged
merged 1 commit into from
Jun 8, 2024
Merged

Conversation

Garvanand
Copy link
Contributor

Email Spam Classifier

This Python script utilizes machine learning techniques to classify emails as either spam or legitimate (ham). The classifier is built using logistic regression and employs the TF-IDF (Term Frequency-Inverse Document Frequency) vectorizer for feature extraction. Here's a brief overview of the workflow:

Data Preparation: The script loads email data from a CSV file and preprocesses it, handling missing values and converting categorical labels (spam, ham) to binary values.

Feature Extraction: TF-IDF vectorization is used to transform the text data into numerical features, capturing the importance of words in the documents.

Model Training: A logistic regression model is trained on the extracted features to learn patterns distinguishing between spam and ham emails.

Evaluation: The model's performance is evaluated on both training and testing datasets using accuracy metrics.

Prediction: Users can input an email message, and the model predicts whether it's spam or legitimate.

This classifier enables efficient identification of spam emails, contributing to a more organized and secure inbox experience.

Kindly assign it GSSoC label and mark it as a contribution under it

Addressing issue : #237 @sanjay-kv

Copy link

github-actions bot commented Jun 8, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@sanjay-kv sanjay-kv merged commit a10e620 into recodehive:main Jun 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants