Downloads · 30 days
12
2% of all-time downloads
Rakshit122/roberta
roberta is a text classification model from Rakshit122. 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.
Model trained from roberta-base on the goemotions dataset for multi-label classification.
Downloads · 30 days
12
2% of all-time downloads
All-time downloads
494
Public
Repo size
997 MB
Likes
1
Public
Click a slice to open those files.
.bin499 MB · 99%
From the Hugging Face model README
Model trained from roberta-base on the go_emotions dataset for multi-label classification.
go_emotions is based on Reddit data and has 28 labels. It is a multi-label dataset where one or multiple labels may apply for any given input text, hence this model is a multi-label classification model with 28 'probability' float outputs for any given input text. Typically a threshold of 0.5 is applied to the probabilities for the prediction for each label.
The model was trained using AutoModelForSequenceClassification.from_pretrained with problem_type="multi_label_classification" for 3 epochs with a learning rate of 2e-5 and weight decay of 0.01.
Evaluation (of the 28 dim output via a threshold of 0.5 to binarize each) using the dataset test split gives:
But the metrics would be more meaningful when measured per label given the multi-label nature.
Additionally some labels (E.g. gratitude) when considered independently perform very strongly with F1 around 0.9, whilst others (E.g. relief) perform very poorly. This is a challenging dataset. Labels such as relief do have much fewer examples in the training data (less than 100 out of the 40k+), but there is also some ambiguity and/or labelling errors visible in the training data of go_emotions that is suspected to constrain the performance.