mitulshah/transaction-categorization
Viewer • Updated • 4.5M • 206 • 11
This model classifies bank transactions into 10 categories with 98.53% accuracy.
| Metric | Value |
|---|---|
| Accuracy | 98.53% |
| Loss | 0.0221 |
| Training Samples | 80,000 |
| Validation Samples | 20,000 |
from transformers import pipeline
classifier = pipeline("text-classification",
model="finmigodeveloper/distilbert-transaction-classifier")
# Test it
transactions = [
"Starbucks coffee",
"Monthly salary deposit",
"Uber ride to airport"
]
for text in transactions:
result = classifier(text)[0]
print(f"{text}: {result['label']} ({result['score']:.2%})")