justina/yelp_boba_reviews
Viewer • Updated • 13.2k • 17
How to use justina/undersampled-review-clf with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="justina/undersampled-review-clf") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("justina/undersampled-review-clf")
model = AutoModelForSequenceClassification.from_pretrained("justina/undersampled-review-clf")This model is a fine-tuned version of cardiffnlp/twitter-roberta-base-sentiment-latest on justina/yelp-boba-reviews dataset. Undersampling techniques were used to optimize the model for predicting Yelp review ratings.
It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | F1 Macro | Aucpr Macro | Accuracy |
|---|---|---|---|---|---|---|
| 0.9348 | 1.22 | 100 | 0.7286 | 0.6132 | 0.6244 | 0.6962 |
| 0.7438 | 2.44 | 200 | 0.7857 | 0.6232 | 0.6215 | 0.6735 |
| 0.6275 | 3.66 | 300 | 0.8317 | 0.5976 | 0.6092 | 0.6778 |
| 0.5561 | 4.88 | 400 | 0.8176 | 0.6200 | 0.6238 | 0.6868 |