Yelp/yelp_review_full
Viewer • Updated • 700k • 18.3k • 147
How to use arman1o1/yelp_review_classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="arman1o1/yelp_review_classifier") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("arman1o1/yelp_review_classifier")
model = AutoModelForSequenceClassification.from_pretrained("arman1o1/yelp_review_classifier", device_map="auto")This model is a fine-tuned version of google-bert/bert-base-cased on Yelp/yelp_review_full dataset. 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 | Accuracy |
|---|---|---|---|---|
| 0.3664 | 0.0985 | 500 | 0.8323 | 0.6359 |
| 0.8124 | 0.1969 | 1000 | 0.7954 | 0.6487 |
| 0.7915 | 0.2954 | 1500 | 0.7846 | 0.6562 |
| 0.7693 | 0.3938 | 2000 | 0.7509 | 0.6699 |
| 0.7591 | 0.4923 | 2500 | 0.7425 | 0.6719 |
| 0.7456 | 0.5907 | 3000 | 0.7323 | 0.6773 |
| 0.744 | 0.6892 | 3500 | 0.7282 | 0.6806 |
| 0.7347 | 0.7876 | 4000 | 0.7181 | 0.6838 |
| 0.7277 | 0.8861 | 4500 | 0.7158 | 0.6841 |
| 0.719 | 0.9845 | 5000 | 0.7121 | 0.6864 |
Base model
google-bert/bert-base-cased