Add evaluation result
Browse files
README.md
CHANGED
|
@@ -64,7 +64,99 @@ With a total of 13,083 customer service queries, it specifically emphasizes prec
|
|
| 64 |
within a single domain.
|
| 65 |
|
| 66 |
## Training procedure
|
| 67 |
-
To reproduce the result, please refer to this [notebook](https://github.com/LxYuan0420/nlp/blob/main/notebooks/distillbert-intent-classification-banking.ipynb)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
### Training hyperparameters
|
| 70 |
|
|
|
|
| 64 |
within a single domain.
|
| 65 |
|
| 66 |
## Training procedure
|
| 67 |
+
- To reproduce the result, please refer to this [notebook](https://github.com/LxYuan0420/nlp/blob/main/notebooks/distillbert-intent-classification-banking.ipynb)
|
| 68 |
+
- To run the evaluation, please refer to this [evaluation notebook](https://github.com/LxYuan0420/nlp/blob/main/notebooks/Evaluator_from_Huggingface.ipynb)
|
| 69 |
+
|
| 70 |
+
### Evaluation
|
| 71 |
+
<details>
|
| 72 |
+
<summary>Evaluation result</summary>
|
| 73 |
+
|
| 74 |
+
Classification Report:
|
| 75 |
+
precision recall f1-score support
|
| 76 |
+
|
| 77 |
+
activate_my_card 1.0000 0.9750 0.9873 40
|
| 78 |
+
age_limit 0.9756 1.0000 0.9877 40
|
| 79 |
+
apple_pay_or_google_pay 1.0000 1.0000 1.0000 40
|
| 80 |
+
atm_support 0.9750 0.9750 0.9750 40
|
| 81 |
+
automatic_top_up 1.0000 0.9000 0.9474 40
|
| 82 |
+
balance_not_updated_after_bank_transfer 0.8205 0.8000 0.8101 40
|
| 83 |
+
balance_not_updated_after_cheque_or_cash_deposit 1.0000 0.9750 0.9873 40
|
| 84 |
+
beneficiary_not_allowed 0.9250 0.9250 0.9250 40
|
| 85 |
+
cancel_transfer 1.0000 0.9750 0.9873 40
|
| 86 |
+
card_about_to_expire 0.9756 1.0000 0.9877 40
|
| 87 |
+
card_acceptance 0.9189 0.8500 0.8831 40
|
| 88 |
+
card_arrival 0.9459 0.8750 0.9091 40
|
| 89 |
+
card_delivery_estimate 0.8605 0.9250 0.8916 40
|
| 90 |
+
card_linking 0.9302 1.0000 0.9639 40
|
| 91 |
+
card_not_working 0.8478 0.9750 0.9070 40
|
| 92 |
+
card_payment_fee_charged 0.7917 0.9500 0.8636 40
|
| 93 |
+
card_payment_not_recognised 0.9231 0.9000 0.9114 40
|
| 94 |
+
card_payment_wrong_exchange_rate 0.9048 0.9500 0.9268 40
|
| 95 |
+
card_swallowed 1.0000 0.8750 0.9333 40
|
| 96 |
+
cash_withdrawal_charge 0.9744 0.9500 0.9620 40
|
| 97 |
+
cash_withdrawal_not_recognised 0.8667 0.9750 0.9176 40
|
| 98 |
+
change_pin 0.9302 1.0000 0.9639 40
|
| 99 |
+
compromised_card 0.8889 0.8000 0.8421 40
|
| 100 |
+
contactless_not_working 1.0000 0.9000 0.9474 40
|
| 101 |
+
country_support 0.9512 0.9750 0.9630 40
|
| 102 |
+
declined_card_payment 0.8125 0.9750 0.8864 40
|
| 103 |
+
declined_cash_withdrawal 0.7843 1.0000 0.8791 40
|
| 104 |
+
declined_transfer 0.9667 0.7250 0.8286 40
|
| 105 |
+
direct_debit_payment_not_recognised 0.9444 0.8500 0.8947 40
|
| 106 |
+
disposable_card_limits 0.8974 0.8750 0.8861 40
|
| 107 |
+
edit_personal_details 0.9302 1.0000 0.9639 40
|
| 108 |
+
exchange_charge 0.9722 0.8750 0.9211 40
|
| 109 |
+
exchange_rate 0.9091 1.0000 0.9524 40
|
| 110 |
+
exchange_via_app 0.8085 0.9500 0.8736 40
|
| 111 |
+
extra_charge_on_statement 1.0000 0.9500 0.9744 40
|
| 112 |
+
failed_transfer 0.8333 0.8750 0.8537 40
|
| 113 |
+
fiat_currency_support 0.8718 0.8500 0.8608 40
|
| 114 |
+
get_disposable_virtual_card 0.9722 0.8750 0.9211 40
|
| 115 |
+
get_physical_card 0.9756 1.0000 0.9877 40
|
| 116 |
+
getting_spare_card 0.9500 0.9500 0.9500 40
|
| 117 |
+
getting_virtual_card 0.8667 0.9750 0.9176 40
|
| 118 |
+
lost_or_stolen_card 0.8261 0.9500 0.8837 40
|
| 119 |
+
lost_or_stolen_phone 0.9750 0.9750 0.9750 40
|
| 120 |
+
order_physical_card 0.9231 0.9000 0.9114 40
|
| 121 |
+
passcode_forgotten 1.0000 1.0000 1.0000 40
|
| 122 |
+
pending_card_payment 0.9500 0.9500 0.9500 40
|
| 123 |
+
pending_cash_withdrawal 1.0000 0.9500 0.9744 40
|
| 124 |
+
pending_top_up 0.9268 0.9500 0.9383 40
|
| 125 |
+
pending_transfer 0.8611 0.7750 0.8158 40
|
| 126 |
+
pin_blocked 0.9714 0.8500 0.9067 40
|
| 127 |
+
receiving_money 1.0000 0.9250 0.9610 40
|
| 128 |
+
Refund_not_showing_up 1.0000 0.9250 0.9610 40
|
| 129 |
+
request_refund 0.9512 0.9750 0.9630 40
|
| 130 |
+
reverted_card_payment? 0.9286 0.9750 0.9512 40
|
| 131 |
+
supported_cards_and_currencies 0.9744 0.9500 0.9620 40
|
| 132 |
+
terminate_account 0.9302 1.0000 0.9639 40
|
| 133 |
+
top_up_by_bank_transfer_charge 1.0000 0.8250 0.9041 40
|
| 134 |
+
top_up_by_card_charge 0.9286 0.9750 0.9512 40
|
| 135 |
+
top_up_by_cash_or_cheque 0.8810 0.9250 0.9024 40
|
| 136 |
+
top_up_failed 0.9024 0.9250 0.9136 40
|
| 137 |
+
top_up_limits 0.9286 0.9750 0.9512 40
|
| 138 |
+
top_up_reverted 0.9706 0.8250 0.8919 40
|
| 139 |
+
topping_up_by_card 0.8421 0.8000 0.8205 40
|
| 140 |
+
transaction_charged_twice 0.9302 1.0000 0.9639 40
|
| 141 |
+
transfer_fee_charged 0.9024 0.9250 0.9136 40
|
| 142 |
+
transfer_into_account 0.9167 0.8250 0.8684 40
|
| 143 |
+
transfer_not_received_by_recipient 0.7778 0.8750 0.8235 40
|
| 144 |
+
transfer_timing 0.8372 0.9000 0.8675 40
|
| 145 |
+
unable_to_verify_identity 0.9250 0.9250 0.9250 40
|
| 146 |
+
verify_my_identity 0.7955 0.8750 0.8333 40
|
| 147 |
+
verify_source_of_funds 0.9524 1.0000 0.9756 40
|
| 148 |
+
verify_top_up 1.0000 1.0000 1.0000 40
|
| 149 |
+
virtual_card_not_working 1.0000 0.9250 0.9610 40
|
| 150 |
+
visa_or_mastercard 0.9737 0.9250 0.9487 40
|
| 151 |
+
why_verify_identity 0.9118 0.7750 0.8378 40
|
| 152 |
+
wrong_amount_of_cash_received 1.0000 0.8750 0.9333 40
|
| 153 |
+
wrong_exchange_rate_for_cash_withdrawal 0.9730 0.9000 0.9351 40
|
| 154 |
+
|
| 155 |
+
accuracy 0.9244 3080
|
| 156 |
+
macro avg 0.9282 0.9244 0.9243 3080
|
| 157 |
+
weighted avg 0.9282 0.9244 0.9243 3080
|
| 158 |
+
|
| 159 |
+
</details>
|
| 160 |
|
| 161 |
### Training hyperparameters
|
| 162 |
|