File size: 1,141 Bytes
268faf3
 
 
d00f679
268faf3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
datasets:
- stanfordnlp/sentiment140
pipeline_tag: text-classification
---
# sentiment-roberta-base

Fine-tuned RoBERTa-base for binary sentiment classification on the Sentiment140 dataset (1.6M tweets).

## Base model

[FacebookAI/roberta-base](https://huggingface.co/FacebookAI/roberta-base) — the original RoBERTa-base from Liu et al. (2019), 125M parameters.

## Training

- Dataset: Sentiment140 (1.6M tweets, 80/20 split, seed 42)
- Hyperparameters: learning rate 2e-5, batch size 16, 3 epochs
- Hardware: NVIDIA A10G, AWS SageMaker (g5.2xlarge)
- Training time: 7.5 hours
- Trainer: Hugging Face Transformers + Trainer API; load_best_model_at_end=True

## Test set performance

| Metric | Value |
|---|---|
| Accuracy | 89.11% |
| Precision | 0.901 |
| Recall | 0.879 |
| F1 | 0.890 |

## Intended use

Demonstration model for an academic purposes

## Limitations

- English only, binary sentiment, 2009-era Twitter language.
- Sentiment140 labels generated automatically using emoticons (distant supervision), introducing systematic noise.
- Does not handle sarcasm reliably (the dataset does not separate it as a phenomenon).