Views
No views yet
| Metric | Score |
|---|---|
| Accuracy | 93.0% |
| Macro F1 | 93.0% |
1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4tokenizer = AutoTokenizer.from_pretrained("khaze0911/banking77-distilbert")
5model = AutoModelForSequenceClassification.from_pretrained("khaze0911/banking77-distilbert")
6
7inputs = tokenizer("How do I freeze my card?", return_tensors="pt")
8with torch.no_grad():
9 logits = model(**inputs).logits
10
11predicted_class = model.config.id2label[logits.argmax().item()]
12print(predicted_class) # → "freeze_account" or similarwhy_verify_identity ↔ verify_my_identity, pending_transfer ↔ transfer_not_received_by_recipient) appear to be labeling ambiguities in the source dataset rather than model failures.