Downloads · 30 days
12
2% of all-time downloads
Sanrove/albert-spam-sms-classification-finetuned
albert-spam-sms-classification-finetuned is a text classification model from Sanrove. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
12
2% of all-time downloads
All-time downloads
513
Public
Repo size
93.5 MB
Likes
0
Public
Click a slice to open those files.
.bin46.8 MB · 95%
From the Hugging Face model README
This model is a fine-tuned version of albert-base-v2 on an Spam Data Collection dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
SMS 1:
Message: Hey, I'll be there in 10 minutes. See you soon!
Label: label_0 (ham)
SMS 2:
Message: Congratulations! You've won a $1000 gift card. Claim it now by clicking the link.
Label: label_1 (spam)
In this SMS classification example, the first message is labeled as "label_0" because it appears to be a legitimate text message (ham) with someone informing they will arrive shortly. The second message is labeled as "label_1" because it is clearly spam, offering a prize and urging the recipient to click a link, which is a common characteristic of spam messages. The classification model uses these labels to identify and filter out spammy SMS messages, ensuring that legitimate messages reach the user's inbox (ham).
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Score |
|---|---|---|---|---|---|
| No log | 1.0 | 244 | 0.1070 | 0.9785 | 0.9785 |
| No log | 2.0 | 488 | 0.0673 | 0.9880 | 0.9880 |
| 0.0885 | 3.0 | 732 | 0.0293 | 0.9946 | 0.9946 |
| 0.0885 | 4.0 | 976 | 0.0280 | 0.9964 | 0.9964 |
| 0.0306 | 5.0 | 1220 | 0.0355 | 0.9952 | 0.9952 |
| 0.0306 | 6.0 | 1464 | 0.0364 | 0.9952 | 0.9952 |
| 0.0087 | 7.0 | 1708 | 0.0448 | 0.9946 | 0.9946 |
| 0.0087 | 8.0 | 1952 | 0.0618 | 0.9922 | 0.9922 |
| 0.0047 | 9.0 | 2196 | 0.0420 | 0.9946 | 0.9946 |
| 0.0047 | 10.0 | 2440 | 0.0393 | 0.9946 | 0.9946 |