CoolFace
Modelpublic

MaxKazak/ruBert-base-russian-emotion-detection

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
6likes531downloads
Model Card

ruBert-base-russian-emotions-classifier-goEmotions

This model is a fine-tuned version of ai-forever/ruBert-base on Djacon/ru_goemotions. It achieves the following results on the evaluation set (2nd epoch):

  • Loss: 0.2088
  • AUC: 0.9240

The quality of the predicted probabilities on the test dataset is the following:

labeljoyinterestsurpisesadnessangerdisgustfearguiltneutralaverage
AUC0.93690.92130.93250.87910.83740.90410.94700.97580.85180.9095
F1-micro0.95280.91570.96970.92840.86900.96580.98510.98750.76540.9266
F1-macro0.83690.79220.75610.73920.73510.73560.81760.82470.76500.7781

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

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

Training results

Training LossEpochStepValidation LossAUC
0.17551.016850.17170.9220
0.13912.033700.17570.9240
0.08993.050550.20880.9106

Framework versions

  • Transformers 4.24.0
  • Pytorch 2.0.1
  • Datasets 2.12.0
  • Tokenizers 0.11.0