Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.