# neethureddysettipalli/spam-email-classifier architecture

> Architecture diagram of the GitHub repository neethureddysettipalli/spam-email-classifier, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/neethureddysettipalli/spam-email-classifier
- Repository: https://github.com/neethureddysettipalli/spam-email-classifier

## Overview

This is a small Jupyter-based SMS spam classifier. The documented workflow uses the SMS Spam Collection dataset to evaluate Naive Bayes and Logistic Regression, then reports accuracy and classifies messages as spam or ham. The notebook was not excerpted, so implementation details and internal call relationships cannot be verified; the edges shown are supported by the README.

Main entry points: [`spam_email_ classifier.ipynb`](https://github.com/neethureddysettipalli/spam-email-classifier/blob/main/spam_email_%20classifier.ipynb) (Classifier notebook), [`spam.csv`](https://github.com/neethureddysettipalli/spam-email-classifier/blob/main/spam.csv) (SMS dataset)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_notebook["Classifier notebook"]
node_dataset["SMS dataset<br/>[spam.csv]"]
node_naive_bayes["Naive Bayes"]
node_logistic_regression["Logistic Regression"]
node_results["Spam or ham; accuracy"]

node_user -->|"runs"| node_notebook
node_dataset -->|"evaluated with"| node_notebook
node_notebook -->|"uses"| node_naive_bayes
node_notebook -->|"uses"| node_logistic_regression
node_notebook -->|"reports"| node_results

click node_notebook "https://github.com/neethureddysettipalli/spam-email-classifier/blob/main/spam_email_%20classifier.ipynb"
click node_dataset "https://github.com/neethureddysettipalli/spam-email-classifier/blob/main/spam.csv"
click node_naive_bayes "https://github.com/neethureddysettipalli/spam-email-classifier/blob/main/spam_email_%20classifier.ipynb"
click node_logistic_regression "https://github.com/neethureddysettipalli/spam-email-classifier/blob/main/spam_email_%20classifier.ipynb"
click node_results "https://github.com/neethureddysettipalli/spam-email-classifier/blob/main/spam_email_%20classifier.ipynb"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user toneBlue
class node_notebook,node_dataset,node_naive_bayes,node_logistic_regression,node_results toneTeal
```

## Components

### Other components

- **User**
- [Classifier notebook](https://github.com/neethureddysettipalli/spam-email-classifier/blob/main/spam_email_%20classifier.ipynb): `spam_email_ classifier.ipynb`
- [SMS dataset](https://github.com/neethureddysettipalli/spam-email-classifier/blob/main/spam.csv): `spam.csv`
- [Naive Bayes](https://github.com/neethureddysettipalli/spam-email-classifier/blob/main/spam_email_%20classifier.ipynb): `spam_email_ classifier.ipynb`
- [Logistic Regression](https://github.com/neethureddysettipalli/spam-email-classifier/blob/main/spam_email_%20classifier.ipynb): `spam_email_ classifier.ipynb`
- [Spam or ham; accuracy](https://github.com/neethureddysettipalli/spam-email-classifier/blob/main/spam_email_%20classifier.ipynb): `spam_email_ classifier.ipynb`

## Connections

- User → Classifier notebook: runs (evidence: `README.md`)
- SMS dataset → Classifier notebook: evaluated with (evidence: `README.md`)
- Classifier notebook → Naive Bayes: uses (evidence: `README.md`)
- Classifier notebook → Logistic Regression: uses (evidence: `README.md`)
- Classifier notebook → Spam or ham; accuracy: reports (evidence: `README.md`)
