
## Dataset
The dataset is composed of messages labeled by ham or spam, merged from three data sources:

- SMS Spam Collection https://www.kaggle.com/datasets/uciml/sms-spam-collection-dataset
- Telegram Spam Ham https://huggingface.co/datasets/thehamkercat/telegram-spam-ham/tree/main
- Enron Spam:  https://huggingface.co/datasets/SetFit/enron_spam/tree/main (only used message column and labels)

The prepare script for enron is available at https://github.com/mshenoda/roberta-spam/tree/main/data/enron.
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.

### Dataset Class Distribution

Training  80%  |  Validation  10%   |  Testing  10%          
:-------------------------:|:-------------------------:|:-------------------------: 
![](plots/train_set_distribution.jpg "Train Distribution") Class Distribution | ![](plots/val_set_distribution.jpg "Validation Distribution") Class Distribution | ![](plots/test_set_distribution.jpg "Test Distribution")  Class Distribution
license:mit region:us
{"license": "mit"}
TAGS
#license-mit #region-us 

Dataset
-------


The dataset is composed of messages labeled by ham or spam, merged from three data sources:


* SMS Spam Collection URL
* Telegram Spam Ham URL
* Enron Spam: URL (only used message column and labels)


The prepare script for enron is available at URL
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: URL


### Dataset Class Distribution




### Dataset Class Distribution
TAGS
#license-mit #region-us 
 ### Dataset Class Distribution
passage: TAGS
#license-mit #region-us 
### Dataset Class Distribution