CoolFace
Modelpublic

sangkm/go-emotions-fine-tuned-distilroberta

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes15downloads
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. -->

go-emotions-fine-tuned-distilroberta

This model is a fine-tuned version of distilbert/distilroberta-base on GoEmotions dataset. It achieves the following results on the evaluation set (threshold = 0.5):

  • —Loss: 0.0841
  • —Micro Precision: 0.6789
  • —Micro Recall: 0.5047
  • —Micro F1: 0.5790
  • —Macro Precision: 0.5559
  • —Macro Recall: 0.4000
  • —Macro F1: 0.4502
  • —Weighted Precision: 0.6538
  • —Weighted Recall: 0.5047
  • —Weighted F1: 0.5577
  • —Hamming Loss: 0.0308

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 5e-05
  • —trainbatchsize: 8
  • —evalbatchsize: 8
  • —seed: 42
  • —optimizer: Use OptimizerNames.ADAMWTORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizerargs=No additional optimizer arguments
  • —lrschedulertype: linear
  • —num_epochs: 3.0

Training results

Training LossEpochStepValidation LossMicro PrecisionMicro RecallMicro F1Macro PrecisionMacro RecallMacro F1Weighted PrecisionWeighted RecallWeighted F1Hamming Loss
0.10621.054270.08890.69560.44980.54640.50870.31110.35370.62460.44980.49360.0314
0.08282.0108540.08340.70420.47980.57070.58740.35620.41080.68720.47980.53060.0303
0.07043.0162810.08410.67890.50470.57900.55590.40000.45020.65380.50470.55770.0308

Test results

ClassPrecisionRecallF1-ScoreSupport
admiration0.690.730.71504
amusement0.790.870.83264
anger0.580.410.48198
annoyance0.450.160.24320
approval0.580.340.43351
caring0.510.290.37135
confusion0.570.380.46153
curiosity0.500.460.48284
desire0.700.360.4883
disappointment0.600.190.28151
disapproval0.420.290.34267
disgust0.630.330.44123
embarrassment0.820.380.5237
excitement0.570.330.42103
fear0.710.640.6878
gratitude0.940.900.92352
grief0.000.000.006
joy0.690.540.61161
love0.820.840.83238
nervousness0.670.170.2823
optimism0.630.480.55186
pride0.000.000.0016
realization0.540.130.21145
relief0.000.000.0011
remorse0.580.770.6656
sadness0.670.490.57156
surprise0.610.440.51141
neutral0.730.540.621787
micro avg0.680.510.586329
macro avg0.570.410.466329
weighted avg0.660.510.566329
samples avg0.560.530.546329

Framework versions

  • —Transformers 4.47.0
  • —Pytorch 2.3.1+cu121
  • —Datasets 2.20.0
  • —Tokenizers 0.21.0