distilbert-base-uncased-finetuned-emotion

This model is a fine-tuned version of distilbert-base-uncased on the emotion dataset. It classifies an English tweet into one of six emotions: sadness, joy, love, anger, fear, surprise.

It was trained as a course assignment for an introductory AI course.

Results

On the validation set:

  • Accuracy: 0.932
  • Weighted F1: 0.9328

Training hyperparameters

  • learning rate: 2e-5
  • train batch size: 64
  • optimizer: AdamW
  • lr scheduler: linear with 10% warmup
  • weight decay: 0.01
  • epochs: 3 (best checkpoint kept by validation F1)

How to use

from transformers import pipeline

clf = pipeline("text-classification",
               model="ireallydk/distilbert-base-uncased-finetuned-emotion")
print(clf("i feel so happy today"))
Downloads last month
5
Safetensors
Model size
67M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ireallydk/distilbert-base-uncased-finetuned-emotion

Finetuned
(12305)
this model

Dataset used to train ireallydk/distilbert-base-uncased-finetuned-emotion

Evaluation results