Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
---
|
4 |
+
|
5 |
+
## Dataset
|
6 |
+
The dataset is composed of messages labeled by ham or spam, merged from three data sources:
|
7 |
+
1. SMS Spam Collection https://www.kaggle.com/datasets/uciml/sms-spam-collection-dataset
|
8 |
+
2. Telegram Spam Ham https://huggingface.co/datasets/thehamkercat/telegram-spam-ham/tree/main
|
9 |
+
3. Enron Spam: https://huggingface.co/datasets/SetFit/enron_spam/tree/main (only used message column and labels)
|
10 |
+
|
11 |
+
The prepare script for enron is available at https://github.com/mshenoda/roberta-spam/tree/main/data/enron.
|
12 |
+
The data is split 80% train 10% validation, and 10% test sets; the scripts used to split and merge of the three data sources are available at: https://github.com/mshenoda/roberta-spam/tree/main/data/utils.
|
13 |
+
|
14 |
+
### Dataset Class Distribution
|
15 |
+
|
16 |
+
Training 80% | Validation 10% | Testing 10%
|
17 |
+
:-------------------------:|:-------------------------:|:-------------------------:
|
18 |
+
![](plots/train_set_distribution.jpg "Train / Validation Loss") Class Distribution | ![](plots/val_set_distribution.jpg "Class Distribution") Class Distribution | ![](plots/test_set_distribution.jpg "Class Distribution") Class Distribution
|