bhadresh-savani / roberta-base-emotion

huggingface.co
Total runs: 24.0K
24-hour runs: 18
7-day runs: -442
30-day runs: 1.9K
Model's Last Updated: March 22 2023
text-classification

Introduction of roberta-base-emotion

Model Details of roberta-base-emotion

robert-base-emotion

Model description:

roberta is Bert with better hyperparameter choices so they said it's Robustly optimized Bert during pretraining.

roberta-base finetuned on the emotion dataset using HuggingFace Trainer with below Hyperparameters

 learning rate 2e-5, 
 batch size 64,
 num_train_epochs=8,
Model Performance Comparision on Emotion Dataset from Twitter:
Model Accuracy F1 Score Test Sample per Second
Distilbert-base-uncased-emotion 93.8 93.79 398.69
Bert-base-uncased-emotion 94.05 94.06 190.152
Roberta-base-emotion 93.95 93.97 195.639
Albert-base-v2-emotion 93.6 93.65 182.794
How to Use the model:
from transformers import pipeline
classifier = pipeline("text-classification",model='bhadresh-savani/roberta-base-emotion', 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)

"""
Output:
[[
{'label': 'sadness', 'score': 0.002281982684507966}, 
{'label': 'joy', 'score': 0.9726489186286926}, 
{'label': 'love', 'score': 0.021365027874708176}, 
{'label': 'anger', 'score': 0.0026395076420158148}, 
{'label': 'fear', 'score': 0.0007162453257478774}, 
{'label': 'surprise', 'score': 0.0003483477921690792}
]]
"""
Dataset:

Twitter-Sentiment-Analysis .

Training procedure

Colab Notebook follow the above notebook by changing the model name to roberta

Eval results
{
 'test_accuracy': 0.9395,
 'test_f1': 0.9397328860104454,
 'test_loss': 0.14367154240608215,
 'test_runtime': 10.2229,
 'test_samples_per_second': 195.639,
 'test_steps_per_second': 3.13
 }
Reference:

Runs of bhadresh-savani roberta-base-emotion on huggingface.co

24.0K
Total runs
18
24-hour runs
-139
3-day runs
-442
7-day runs
1.9K
30-day runs

More Information About roberta-base-emotion huggingface.co Model

More roberta-base-emotion license Visit here:

https://choosealicense.com/licenses/apache-2.0

roberta-base-emotion huggingface.co

roberta-base-emotion huggingface.co is an AI model on huggingface.co that provides roberta-base-emotion's model effect (), which can be used instantly with this bhadresh-savani roberta-base-emotion model. huggingface.co supports a free trial of the roberta-base-emotion model, and also provides paid use of the roberta-base-emotion. Support call roberta-base-emotion model through api, including Node.js, Python, http.

bhadresh-savani roberta-base-emotion online free

roberta-base-emotion huggingface.co is an online trial and call api platform, which integrates roberta-base-emotion's modeling effects, including api services, and provides a free online trial of roberta-base-emotion, you can try roberta-base-emotion online for free by clicking the link below.

bhadresh-savani roberta-base-emotion online free url in huggingface.co:

https://huggingface.co/bhadresh-savani/roberta-base-emotion

roberta-base-emotion install

roberta-base-emotion is an open source model from GitHub that offers a free installation service, and any user can find roberta-base-emotion on GitHub to install. At the same time, huggingface.co provides the effect of roberta-base-emotion install, users can directly use roberta-base-emotion installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

roberta-base-emotion install url in huggingface.co:

https://huggingface.co/bhadresh-savani/roberta-base-emotion

Url of roberta-base-emotion

Provider of roberta-base-emotion huggingface.co

bhadresh-savani
ORGANIZATIONS

Other API from bhadresh-savani