Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- multilingual
|
| 4 |
+
tags:
|
| 5 |
+
- xlm-roberta
|
| 6 |
+
- sentiment-analysis
|
| 7 |
+
- text-classification
|
| 8 |
+
metrics:
|
| 9 |
+
- f1
|
| 10 |
+
pipeline_tag: text-classification
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# CMPE 346 - Assignment 02: Multilingual Sentiment Classification
|
| 14 |
+
|
| 15 |
+
## Model Details
|
| 16 |
+
- **Base Model:** xlm-roberta-large
|
| 17 |
+
- **Task:** Binary sentiment classification (positive/negative)
|
| 18 |
+
- **Language:** Multilingual
|
| 19 |
+
|
| 20 |
+
## Training
|
| 21 |
+
- **Epochs:** 3
|
| 22 |
+
- **Learning Rate:** 1e-5
|
| 23 |
+
- **Batch Size:** 16
|
| 24 |
+
- **Max Length:** 512
|
| 25 |
+
- **Weight Decay:** 0.01
|
| 26 |
+
- **FP16:** True
|
| 27 |
+
- **GPU:** A100
|
| 28 |
+
|
| 29 |
+
## Results
|
| 30 |
+
|
| 31 |
+
| Epoch | Training Loss | Validation Loss | F1 |
|
| 32 |
+
|-------|--------------|-----------------|--------|
|
| 33 |
+
| 1 | 0.4330 | 0.2066 | 0.9244 |
|
| 34 |
+
| 2 | 0.3413 | 0.2147 | 0.9283 |
|
| 35 |
+
| 3 | 0.2684 | 0.2398 | 0.9279 |
|
| 36 |
+
|
| 37 |
+
**Final Validation F1 Score: 0.9282**
|