CoolFace
Modelpublic

wanadzhar913/debertav3-finetuned-banking-transaction-classification-text-only

sourceHugging Faceupdated 2y agoView on Hugging Face
1likes14downloads
Model Card

Model Performance

ModelEpochLearning RateGrad Norm (Mean)Training LossValidation LossAccuracyF1 Score (Weighted)F1 Score (Macro)Precision (Weighted)Precision (Macro)Recall (Weighted)Recall (Macro)
DeBERTaV3 (Text Only)100.00000503.7550.1020.3090.9130.9140.8580.9180.8550.9130.868

How to Use

python
from transformers import AutoTokenizer, AutoConfig, pipeline, \
                         DebertaV2ForSequenceClassification

config = AutoConfig.from_pretrained('wanadzhar913/debertav3-finetuned-banking-transaction-classification-text-only')
model = DebertaV2ForSequenceClassification.from_pretrained('wanadzhar913/debertav3-finetuned-banking-transaction-classification-text-only', config = config)
tokenizer = AutoTokenizer.from_pretrained('wanadzhar913/debertav3-finetuned-banking-transaction-classification-text-only')

pipe = pipeline(
    "text-classification",
    tokenizer = tokenizer,
    model=model,
    padding=True,
    device=0,
)

pipe([
    "Online Banking transfer from CHK 6479 Confirmation# 1425	",
    "DEPOSIT", # Supposed to be 'Payroll'
    "SELF LENDER AUSTIN TX 23267 Debit Card Purchase 09/23 10:20a #6410",
    "SECU Foundation",
    "RECURRING PAYMENT AUTHORIZED ON 06/02 GEICO *AUTO 1036 DC S583153489705993 111",
])
>>>[{'label': 'Internal Account Transfer', 'score': 0.9998998641967773},
>>> {'label': 'Transfer Deposit', 'score': 0.35954612493515015},
>>> {'label': 'Uncategorized', 'score': 0.9998960494995117},
>>> {'label': 'Restaurants', 'score': 0.6260305047035217},
>>> {'label': 'Insurance', 'score': 0.9998502731323242}]