Views
No views yet
bert-base-uncased using Hugging Face Transformers on a custom dataset of customer complaints. The task is multi-class text classification, where each complaint is categorized into one of three classes.bert-base-uncasedlinearAdamWTrainerbaseline-hf-hub| Step | Training Loss | Validation Loss | Accuracy |
|---|---|---|---|
| 100 | 1.106100 | 1.040519 | 0.523810 |
| 200 | 0.944800 | 0.744273 | 0.738095 |
| 300 | 0.660000 | 0.385309 | 0.900000 |
| 400 | 0.412400 | 0.273423 | 0.904762 |
| 500 | 0.220800 | 0.185636 | 0.923810 |
| 600 | 0.163400 | 0.245850 | 0.919048 |
| 700 | 0.116100 | 0.180523 | 0.942857 |
| 800 | 0.097200 | 0.254475 | 0.928571 |
| 900 | 0.052200 | 0.233583 | 0.942857 |
| 1000 | 0.050700 | 0.223150 | 0.928571 |
| 1100 | 0.035100 | 0.271416 | 0.919048 |
| 1200 | 0.027700 | 0.226478 | 0.933333 |
| 1300 | 0.009000 | 0.218807 | 0.938095 |
| 1400 | 0.013600 | 0.246330 | 0.928571 |
| 1500 | 0.014500 | 0.226987 | 0.933333 |
1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2
3model = AutoModelForSequenceClassification.from_pretrained("your-username/baseline-hf-hub")
4tokenizer = AutoTokenizer.from_pretrained("your-username/baseline-hf-hub")
5
6inputs = tokenizer("I want to report an issue with my account", return_tensors="pt")
7outputs = model(**inputs)
8predicted_class = outputs.logits.argmax(dim=-1).item()