Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atharva309/spamemaildetection_perceptron
spam email detection using perceptron learning algorithm
https://github.com/atharva309/spamemaildetection_perceptron
perceptron-learning-algorithm
Last synced: 21 days ago
JSON representation
spam email detection using perceptron learning algorithm
- Host: GitHub
- URL: https://github.com/atharva309/spamemaildetection_perceptron
- Owner: Atharva309
- Created: 2023-05-05T19:44:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-16T22:02:42.000Z (5 months ago)
- Last Synced: 2024-08-16T23:21:08.526Z (5 months ago)
- Topics: perceptron-learning-algorithm
- Language: Jupyter Notebook
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spam Email Detection Using Perceptron
This project implements a spam email detection system using the Perceptron learning algorithm. The goal is to classify emails as spam or non-spam based on their content.
## What is a Perceptron?
A Perceptron is a type of artificial neuron used in machine learning for binary classification tasks. It operates as follows:
1. **Input**: Receives features from the dataset.
2. **Weights**: Each input is multiplied by a weight.
3. **Activation Function**: Applies a step function to determine the output (spam or non-spam).
4. **Learning**: Adjusts weights based on the error between the predicted and actual labels using a learning rule.The Perceptron algorithm updates weights iteratively to minimize classification errors and improve model accuracy.
## Dataset
The project uses the [SMS Spam Collection Dataset](https://www.kaggle.com/datasets/uciml/sms-spam-collection-dataset) which includes labeled text messages for training and testing the model.
## How to Run
1. Clone the repository and set up the environment.
2. Load the dataset and preprocess the text data.
3. Train the Perceptron model on the dataset.
4. Evaluate the model's performance on test data.## Conclusion
This project showcases the application of the Perceptron learning algorithm for detecting spam emails, demonstrating its effectiveness in text classification tasks.