Downloads · 30 days
15
4% of all-time downloads
sonia12138/bert-base-uncased-emotion-fituned
bert-base-uncased-emotion-fituned is a text classification model from sonia12138. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
Bert is a Transformer Bidirectional Encoder based Architecture trained on MLM(Mask Language Modeling) objective
Downloads · 30 days
15
4% of all-time downloads
All-time downloads
358
Public
Repo size
1.8 GB
Likes
1
Public
Click a slice to open those files.
.pt876 MB · 50%
From the Hugging Face model README
Bert is a Transformer Bidirectional Encoder based Architecture trained on MLM(Mask Language Modeling) objective
bert-base-uncased-emotion-fituned finetuned on the emotion dataset using HuggingFace Trainer with below training parameters
num_train_epochs=8,
train_batch_size=32,
eval_batch_size=64,
warmup_steps=500,
weight_decay=0.01
| Model | Accuracy | Recall | F1 Score |
|---|---|---|---|
| Bert-base-uncased-emotion (SOTA) | 92.6 | 87.9 | 88.2 |
| Bert-base-uncased-emotion-fintuned | 92.9 | 88 | 88.5 |
from transformers import pipeline
classifier = pipeline("text-classification",model='sonia12138/bert-base-uncased-emotion-fituned', return_all_scores=True)
prediction = classifier("I love using transformers. The best part is wide range of support and its easy to use", )
print(prediction)
{
'eval_accuracy': 0.929,
'eval_f1': 0.9405920712282673,
'eval_loss': 0.15769127011299133,
'eval_loss': 0.37796708941459656,
"eval_runtime': 8.0514,
'eval_samples_per_second': 248.403,
'eval_steps_per_second': 3.974,
}
NVIDIA GeForce RTX 4090
22.04.1-Ubuntu