CoolFace
Modelpublic

mrm8488/bert-tiny-finetuned-enron-spam-detection

sourceHugging Faceapache-2.0updated 4y agoView on Hugging Face
9likes14kdownloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

BERT-Tiny fine-tuned on Enron Spam Detection

This model is a fine-tuned version of google/bert_uncased_L-2_H-128_A-2 (aka BERT-Tiny) on an SetFit/enron_spam for Spam Dectection downstream task.

It achieves the following results on the evaluation set:

  • Loss: 0.0593
  • Precision: 0.9851
  • Recall: 0.9871
  • Accuracy: 0.986
  • F1: 0.9861

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-05
  • trainbatchsize: 16
  • evalbatchsize: 32
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: linear
  • num_epochs: 4

Training results

Training LossEpochStepValidation LossPrecisionRecallAccuracyF1
0.11251.019830.07970.98390.96920.97650.9765
0.0612.039660.06180.98220.98610.9840.9842
0.04863.059490.05930.98510.98710.9860.9861
0.0484.079320.05880.98700.98210.98450.9846

Framework versions

  • Transformers 4.23.1
  • Pytorch 1.12.1+cu113
  • Datasets 2.6.1
  • Tokenizers 0.13.1