CoolFace
Modelpublic

minh21/XLNet-Reddit-Toxic-Comment-Classification

sourceHugging Facemitupdated 3y agoView on Hugging Face
1likes19downloads
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. -->

XLNet-Reddit-Toxic-Comment-Classification

This model is a fine-tuned version of xlnet-base-cased on the None dataset. It achieves the following results on the evaluation set:

  • Loss: 0.2964
  • Rmse: 0.2828
  • Accuracy: 0.92
  • Precision: 0.9236
  • Recall: 0.9329
  • F1: 0.9282

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: 3e-05
  • trainbatchsize: 8
  • evalbatchsize: 8
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: linear
  • num_epochs: 5

Training results

Training LossEpochStepValidation LossRmseAccuracyPrecisionRecallF1
0.37981.010750.29640.28280.920.92360.93290.9282
0.25072.021500.37910.29730.91160.88240.96980.9241
0.17343.032250.37790.30800.90510.88470.95300.9176
0.11574.043000.47960.28610.91810.94560.90440.9245
0.07625.053750.47290.27620.92370.93410.92790.9310

Framework versions

  • Transformers 4.35.0.dev0
  • Pytorch 2.0.0
  • Datasets 2.1.0
  • Tokenizers 0.14.1