Porameht commited on
Commit
71bb303
1 Parent(s): b829b58

bert-base-intent-classification-cs-th

Browse files
Files changed (4) hide show
  1. README.md +74 -65
  2. config.json +50 -51
  3. model.safetensors +2 -2
  4. training_args.bin +1 -1
README.md CHANGED
@@ -1,35 +1,44 @@
1
  ---
2
  license: apache-2.0
 
3
  tags:
4
  - generated_from_trainer
5
- base_model: google-bert/bert-base-multilingual-cased
6
  metrics:
7
  - accuracy
8
  - f1
9
  - precision
10
  - recall
11
  model-index:
12
- - name: bert-base-multi-class-classification-cs
13
  results: []
14
- datasets:
15
- - Porameht/customer-support-th-26.9k
16
- language:
17
- - th
18
- pipeline_tag: text-classification
19
  ---
20
 
21
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
22
  should probably proofread and complete it, then remove this comment. -->
23
 
24
- # bert-base-multi-class-classification-cs
25
 
26
- This model is a fine-tuned version of [google-bert/bert-base-multilingual-cased](https://huggingface.co/google-bert/bert-base-multilingual-cased) on an [Porameht/customer-support-th-26.9k](https://huggingface.co/datasets/Porameht/customer-support-th-26.9k) dataset.
27
  It achieves the following results on the evaluation set:
28
- - Loss: 0.0385
29
- - Accuracy: 0.9942
30
- - F1: 0.9942
31
- - Precision: 0.9942
32
- - Recall: 0.9942
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
  ### Training hyperparameters
35
 
@@ -48,56 +57,56 @@ The following hyperparameters were used during training:
48
 
49
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
50
  |:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
51
- | 3.3053 | 0.0595 | 50 | 3.1767 | 0.0871 | 0.0306 | 0.0333 | 0.0869 |
52
- | 2.8293 | 0.1190 | 100 | 2.1807 | 0.4647 | 0.3675 | 0.5055 | 0.4651 |
53
- | 1.6887 | 0.1786 | 150 | 1.1300 | 0.7705 | 0.7362 | 0.7621 | 0.7722 |
54
- | 0.9012 | 0.2381 | 200 | 0.6245 | 0.8321 | 0.8086 | 0.8549 | 0.8356 |
55
- | 0.5237 | 0.2976 | 250 | 0.3510 | 0.9129 | 0.9029 | 0.9007 | 0.9147 |
56
- | 0.3115 | 0.3571 | 300 | 0.2218 | 0.9512 | 0.9517 | 0.9545 | 0.9518 |
57
- | 0.2217 | 0.4167 | 350 | 0.1746 | 0.9382 | 0.9284 | 0.9596 | 0.9388 |
58
- | 0.1464 | 0.4762 | 400 | 0.1210 | 0.9729 | 0.9731 | 0.9749 | 0.9730 |
59
- | 0.1201 | 0.5357 | 450 | 0.0977 | 0.9804 | 0.9805 | 0.9810 | 0.9805 |
60
- | 0.0921 | 0.5952 | 500 | 0.1212 | 0.9722 | 0.9721 | 0.9741 | 0.9718 |
61
- | 0.1061 | 0.6548 | 550 | 0.1224 | 0.9726 | 0.9728 | 0.9750 | 0.9728 |
62
- | 0.0996 | 0.7143 | 600 | 0.0812 | 0.9817 | 0.9815 | 0.9819 | 0.9816 |
63
- | 0.1196 | 0.7738 | 650 | 0.0726 | 0.9859 | 0.9858 | 0.9862 | 0.9857 |
64
- | 0.101 | 0.8333 | 700 | 0.0711 | 0.9853 | 0.9854 | 0.9856 | 0.9853 |
65
- | 0.1159 | 0.8929 | 750 | 0.1012 | 0.9792 | 0.9795 | 0.9803 | 0.9796 |
66
- | 0.086 | 0.9524 | 800 | 0.0693 | 0.9870 | 0.9871 | 0.9874 | 0.9870 |
67
- | 0.0742 | 1.0119 | 850 | 0.0619 | 0.9885 | 0.9886 | 0.9888 | 0.9885 |
68
- | 0.0713 | 1.0714 | 900 | 0.0517 | 0.9896 | 0.9896 | 0.9897 | 0.9896 |
69
- | 0.02 | 1.1310 | 950 | 0.0707 | 0.9869 | 0.9870 | 0.9874 | 0.9870 |
70
- | 0.038 | 1.1905 | 1000 | 0.0455 | 0.9920 | 0.9920 | 0.9920 | 0.9919 |
71
- | 0.0378 | 1.25 | 1050 | 0.0485 | 0.9906 | 0.9906 | 0.9906 | 0.9906 |
72
- | 0.0257 | 1.3095 | 1100 | 0.0452 | 0.9921 | 0.9921 | 0.9922 | 0.9921 |
73
- | 0.0454 | 1.3690 | 1150 | 0.0494 | 0.9905 | 0.9905 | 0.9906 | 0.9905 |
74
- | 0.0174 | 1.4286 | 1200 | 0.0404 | 0.9923 | 0.9922 | 0.9922 | 0.9922 |
75
- | 0.0425 | 1.4881 | 1250 | 0.0627 | 0.9879 | 0.9877 | 0.9879 | 0.9877 |
76
- | 0.0489 | 1.5476 | 1300 | 0.0525 | 0.9908 | 0.9907 | 0.9907 | 0.9907 |
77
- | 0.0816 | 1.6071 | 1350 | 0.0439 | 0.9918 | 0.9918 | 0.9919 | 0.9917 |
78
- | 0.0375 | 1.6667 | 1400 | 0.0434 | 0.9921 | 0.9920 | 0.9920 | 0.9921 |
79
- | 0.0435 | 1.7262 | 1450 | 0.0368 | 0.9929 | 0.9928 | 0.9929 | 0.9929 |
80
- | 0.0285 | 1.7857 | 1500 | 0.0364 | 0.9935 | 0.9934 | 0.9935 | 0.9934 |
81
- | 0.0222 | 1.8452 | 1550 | 0.0332 | 0.9942 | 0.9942 | 0.9943 | 0.9941 |
82
- | 0.0311 | 1.9048 | 1600 | 0.0394 | 0.9929 | 0.9929 | 0.9930 | 0.9929 |
83
- | 0.0269 | 1.9643 | 1650 | 0.0359 | 0.9935 | 0.9934 | 0.9935 | 0.9934 |
84
- | 0.0258 | 2.0238 | 1700 | 0.0326 | 0.9937 | 0.9937 | 0.9938 | 0.9937 |
85
- | 0.0046 | 2.0833 | 1750 | 0.0324 | 0.9945 | 0.9944 | 0.9945 | 0.9944 |
86
- | 0.0152 | 2.1429 | 1800 | 0.0329 | 0.9946 | 0.9946 | 0.9948 | 0.9946 |
87
- | 0.024 | 2.2024 | 1850 | 0.0305 | 0.9948 | 0.9947 | 0.9948 | 0.9947 |
88
- | 0.0212 | 2.2619 | 1900 | 0.0333 | 0.9943 | 0.9943 | 0.9943 | 0.9943 |
89
- | 0.0029 | 2.3214 | 1950 | 0.0322 | 0.9937 | 0.9937 | 0.9938 | 0.9937 |
90
- | 0.0114 | 2.3810 | 2000 | 0.0342 | 0.9940 | 0.9940 | 0.9941 | 0.9940 |
91
- | 0.0115 | 2.4405 | 2050 | 0.0328 | 0.9942 | 0.9941 | 0.9942 | 0.9941 |
92
- | 0.0182 | 2.5 | 2100 | 0.0333 | 0.9937 | 0.9937 | 0.9938 | 0.9936 |
93
- | 0.01 | 2.5595 | 2150 | 0.0314 | 0.9940 | 0.9940 | 0.9941 | 0.9940 |
94
- | 0.0205 | 2.6190 | 2200 | 0.0325 | 0.9937 | 0.9937 | 0.9938 | 0.9937 |
95
- | 0.0173 | 2.6786 | 2250 | 0.0335 | 0.9940 | 0.9940 | 0.9941 | 0.9940 |
96
- | 0.0093 | 2.7381 | 2300 | 0.0340 | 0.9942 | 0.9942 | 0.9943 | 0.9941 |
97
- | 0.0151 | 2.7976 | 2350 | 0.0327 | 0.9946 | 0.9947 | 0.9947 | 0.9946 |
98
- | 0.0077 | 2.8571 | 2400 | 0.0321 | 0.9948 | 0.9948 | 0.9949 | 0.9948 |
99
- | 0.0074 | 2.9167 | 2450 | 0.0311 | 0.9946 | 0.9946 | 0.9947 | 0.9946 |
100
- | 0.0021 | 2.9762 | 2500 | 0.0310 | 0.9946 | 0.9946 | 0.9947 | 0.9946 |
101
 
102
 
103
  ### Framework versions
@@ -105,4 +114,4 @@ The following hyperparameters were used during training:
105
  - Transformers 4.40.1
106
  - Pytorch 2.2.1+cu121
107
  - Datasets 2.19.1
108
- - Tokenizers 0.19.1
 
1
  ---
2
  license: apache-2.0
3
+ base_model: google-bert/bert-base-multilingual-cased
4
  tags:
5
  - generated_from_trainer
 
6
  metrics:
7
  - accuracy
8
  - f1
9
  - precision
10
  - recall
11
  model-index:
12
+ - name: bert-base-intent-classification-cs-th
13
  results: []
 
 
 
 
 
14
  ---
15
 
16
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
  should probably proofread and complete it, then remove this comment. -->
18
 
19
+ # bert-base-intent-classification-cs-th
20
 
21
+ This model is a fine-tuned version of [google-bert/bert-base-multilingual-cased](https://huggingface.co/google-bert/bert-base-multilingual-cased) on an unknown dataset.
22
  It achieves the following results on the evaluation set:
23
+ - Loss: 0.0408
24
+ - Accuracy: 0.9936
25
+ - F1: 0.9936
26
+ - Precision: 0.9937
27
+ - Recall: 0.9936
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
 
43
  ### Training hyperparameters
44
 
 
57
 
58
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
59
  |:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
60
+ | 3.2835 | 0.0595 | 50 | 3.1041 | 0.1203 | 0.0504 | 0.0632 | 0.1210 |
61
+ | 2.6752 | 0.1190 | 100 | 1.9646 | 0.5387 | 0.4737 | 0.6298 | 0.5426 |
62
+ | 1.4751 | 0.1786 | 150 | 0.9447 | 0.8190 | 0.7929 | 0.8271 | 0.8188 |
63
+ | 0.7571 | 0.2381 | 200 | 0.5163 | 0.8952 | 0.8826 | 0.8812 | 0.8955 |
64
+ | 0.4849 | 0.2976 | 250 | 0.3539 | 0.9003 | 0.8905 | 0.8926 | 0.9021 |
65
+ | 0.3401 | 0.3571 | 300 | 0.2883 | 0.9160 | 0.9037 | 0.9012 | 0.9165 |
66
+ | 0.2533 | 0.4167 | 350 | 0.1735 | 0.9431 | 0.9322 | 0.9266 | 0.9443 |
67
+ | 0.177 | 0.4762 | 400 | 0.1326 | 0.9665 | 0.9670 | 0.9676 | 0.9671 |
68
+ | 0.119 | 0.5357 | 450 | 0.1527 | 0.9592 | 0.9582 | 0.9699 | 0.9600 |
69
+ | 0.1183 | 0.5952 | 500 | 0.0886 | 0.9839 | 0.9841 | 0.9841 | 0.9842 |
70
+ | 0.1065 | 0.6548 | 550 | 0.0829 | 0.9844 | 0.9844 | 0.9847 | 0.9844 |
71
+ | 0.1006 | 0.7143 | 600 | 0.0686 | 0.9869 | 0.9869 | 0.9872 | 0.9869 |
72
+ | 0.1096 | 0.7738 | 650 | 0.1071 | 0.9789 | 0.9791 | 0.9800 | 0.9788 |
73
+ | 0.1392 | 0.8333 | 700 | 0.0939 | 0.9804 | 0.9804 | 0.9808 | 0.9803 |
74
+ | 0.1067 | 0.8929 | 750 | 0.1077 | 0.9786 | 0.9790 | 0.9802 | 0.9786 |
75
+ | 0.0779 | 0.9524 | 800 | 0.0657 | 0.9878 | 0.9878 | 0.9879 | 0.9879 |
76
+ | 0.0626 | 1.0119 | 850 | 0.0750 | 0.9851 | 0.9853 | 0.9856 | 0.9852 |
77
+ | 0.0419 | 1.0714 | 900 | 0.0641 | 0.9893 | 0.9893 | 0.9895 | 0.9893 |
78
+ | 0.0373 | 1.1310 | 950 | 0.0664 | 0.9891 | 0.9891 | 0.9893 | 0.9890 |
79
+ | 0.035 | 1.1905 | 1000 | 0.0575 | 0.9906 | 0.9906 | 0.9907 | 0.9906 |
80
+ | 0.036 | 1.25 | 1050 | 0.0601 | 0.9891 | 0.9893 | 0.9895 | 0.9892 |
81
+ | 0.0765 | 1.3095 | 1100 | 0.0682 | 0.9875 | 0.9875 | 0.9877 | 0.9874 |
82
+ | 0.0637 | 1.3690 | 1150 | 0.0587 | 0.9906 | 0.9906 | 0.9908 | 0.9906 |
83
+ | 0.0241 | 1.4286 | 1200 | 0.0528 | 0.9906 | 0.9907 | 0.9909 | 0.9905 |
84
+ | 0.0608 | 1.4881 | 1250 | 0.0458 | 0.9920 | 0.9920 | 0.9922 | 0.9919 |
85
+ | 0.0199 | 1.5476 | 1300 | 0.0508 | 0.9914 | 0.9914 | 0.9915 | 0.9914 |
86
+ | 0.0663 | 1.6071 | 1350 | 0.0461 | 0.9911 | 0.9910 | 0.9911 | 0.9910 |
87
+ | 0.0495 | 1.6667 | 1400 | 0.0525 | 0.9906 | 0.9907 | 0.9908 | 0.9906 |
88
+ | 0.0336 | 1.7262 | 1450 | 0.0478 | 0.9915 | 0.9916 | 0.9917 | 0.9915 |
89
+ | 0.0249 | 1.7857 | 1500 | 0.0578 | 0.9891 | 0.9891 | 0.9892 | 0.9891 |
90
+ | 0.0287 | 1.8452 | 1550 | 0.0547 | 0.9908 | 0.9908 | 0.9909 | 0.9908 |
91
+ | 0.0607 | 1.9048 | 1600 | 0.0395 | 0.9929 | 0.9929 | 0.9930 | 0.9928 |
92
+ | 0.0268 | 1.9643 | 1650 | 0.0529 | 0.9897 | 0.9898 | 0.9902 | 0.9897 |
93
+ | 0.013 | 2.0238 | 1700 | 0.0455 | 0.9924 | 0.9925 | 0.9926 | 0.9925 |
94
+ | 0.0106 | 2.0833 | 1750 | 0.0419 | 0.9927 | 0.9928 | 0.9928 | 0.9927 |
95
+ | 0.007 | 2.1429 | 1800 | 0.0461 | 0.9920 | 0.9920 | 0.9921 | 0.9919 |
96
+ | 0.0502 | 2.2024 | 1850 | 0.0433 | 0.9929 | 0.9929 | 0.9930 | 0.9929 |
97
+ | 0.017 | 2.2619 | 1900 | 0.0440 | 0.9926 | 0.9926 | 0.9927 | 0.9926 |
98
+ | 0.0119 | 2.3214 | 1950 | 0.0403 | 0.9927 | 0.9928 | 0.9928 | 0.9927 |
99
+ | 0.0063 | 2.3810 | 2000 | 0.0391 | 0.9930 | 0.9930 | 0.9931 | 0.9930 |
100
+ | 0.0103 | 2.4405 | 2050 | 0.0412 | 0.9929 | 0.9929 | 0.9930 | 0.9929 |
101
+ | 0.012 | 2.5 | 2100 | 0.0420 | 0.9929 | 0.9929 | 0.9930 | 0.9929 |
102
+ | 0.0233 | 2.5595 | 2150 | 0.0407 | 0.9927 | 0.9928 | 0.9928 | 0.9928 |
103
+ | 0.0169 | 2.6190 | 2200 | 0.0397 | 0.9930 | 0.9930 | 0.9931 | 0.9930 |
104
+ | 0.0281 | 2.6786 | 2250 | 0.0367 | 0.9933 | 0.9933 | 0.9934 | 0.9933 |
105
+ | 0.0117 | 2.7381 | 2300 | 0.0360 | 0.9933 | 0.9933 | 0.9934 | 0.9933 |
106
+ | 0.0225 | 2.7976 | 2350 | 0.0354 | 0.9936 | 0.9936 | 0.9937 | 0.9936 |
107
+ | 0.0078 | 2.8571 | 2400 | 0.0357 | 0.9936 | 0.9936 | 0.9937 | 0.9936 |
108
+ | 0.0164 | 2.9167 | 2450 | 0.0346 | 0.9939 | 0.9939 | 0.9940 | 0.9939 |
109
+ | 0.0016 | 2.9762 | 2500 | 0.0345 | 0.9939 | 0.9939 | 0.9940 | 0.9939 |
110
 
111
 
112
  ### Framework versions
 
114
  - Transformers 4.40.1
115
  - Pytorch 2.2.1+cu121
116
  - Datasets 2.19.1
117
+ - Tokenizers 0.19.1
config.json CHANGED
@@ -10,65 +10,64 @@
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
- "0": "contact_human_agent",
14
- "1": "check_invoice",
15
- "2": "payment_issue",
16
  "3": "contact_customer_service",
17
- "4": "check_payment_methods",
18
- "5": "newsletter_subscription",
19
- "6": "check_cancellation_fee",
20
- "7": "get_invoice",
21
- "8": "delete_account",
22
  "9": "check_refund_policy",
23
- "10": "complaint",
24
- "11": "registration_problems",
25
- "12": "get_refund",
26
- "13": "switch_account",
27
- "14": "delivery_period",
28
- "15": "set_up_shipping_address",
29
- "16": "edit_account",
30
- "17": "track_refund",
31
- "18": "cancel_order",
32
- "19": "change_order",
33
- "20": "create_account",
34
- "21": "review",
35
- "22": "track_order",
36
- "23": "change_shipping_address",
37
- "24": "delivery_options",
38
- "25": "place_order",
39
- "26": "recover_password",
40
- "27": "cancel_order"
41
  },
42
  "initializer_range": 0.02,
43
  "intermediate_size": 3072,
44
  "label2id": {
45
- "cancel_order": 27,
46
- "change_order": 19,
47
- "change_shipping_address": 23,
48
- "check_cancellation_fee": 6,
49
- "check_invoice": 1,
50
- "check_payment_methods": 4,
51
  "check_refund_policy": 9,
52
- "complaint": 10,
53
  "contact_customer_service": 3,
54
- "contact_human_agent": 0,
55
- "create_account": 20,
56
- "delete_account": 8,
57
- "delivery_options": 24,
58
- "delivery_period": 14,
59
- "edit_account": 16,
60
- "get_invoice": 7,
61
- "get_refund": 12,
62
- "newsletter_subscription": 5,
63
- "payment_issue": 2,
64
- "place_order": 25,
65
- "recover_password": 26,
66
- "registration_problems": 11,
67
- "review": 21,
68
- "set_up_shipping_address": 15,
69
- "switch_account": 13,
70
- "track_order": 22,
71
- "track_refund": 17
72
  },
73
  "layer_norm_eps": 1e-12,
74
  "max_position_embeddings": 512,
 
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
+ "0": "create_account",
14
+ "1": "review",
15
+ "2": "change_shipping_address",
16
  "3": "contact_customer_service",
17
+ "4": "contact_human_agent",
18
+ "5": "check_payment_methods",
19
+ "6": "set_up_shipping_address",
20
+ "7": "delete_account",
21
+ "8": "newsletter_subscription",
22
  "9": "check_refund_policy",
23
+ "10": "change_order",
24
+ "11": "track_refund",
25
+ "12": "payment_issue",
26
+ "13": "get_invoice",
27
+ "14": "track_order",
28
+ "15": "cancel_order",
29
+ "16": "complaint",
30
+ "17": "delivery_options",
31
+ "18": "recover_password",
32
+ "19": "check_invoice",
33
+ "20": "get_refund",
34
+ "21": "registration_problems",
35
+ "22": "place_order",
36
+ "23": "edit_account",
37
+ "24": "delivery_period",
38
+ "25": "check_cancellation_fee",
39
+ "26": "switch_account"
 
40
  },
41
  "initializer_range": 0.02,
42
  "intermediate_size": 3072,
43
  "label2id": {
44
+ "cancel_order": 15,
45
+ "change_order": 10,
46
+ "change_shipping_address": 2,
47
+ "check_cancellation_fee": 25,
48
+ "check_invoice": 19,
49
+ "check_payment_methods": 5,
50
  "check_refund_policy": 9,
51
+ "complaint": 16,
52
  "contact_customer_service": 3,
53
+ "contact_human_agent": 4,
54
+ "create_account": 0,
55
+ "delete_account": 7,
56
+ "delivery_options": 17,
57
+ "delivery_period": 24,
58
+ "edit_account": 23,
59
+ "get_invoice": 13,
60
+ "get_refund": 20,
61
+ "newsletter_subscription": 8,
62
+ "payment_issue": 12,
63
+ "place_order": 22,
64
+ "recover_password": 18,
65
+ "registration_problems": 21,
66
+ "review": 1,
67
+ "set_up_shipping_address": 6,
68
+ "switch_account": 26,
69
+ "track_order": 14,
70
+ "track_refund": 11
71
  },
72
  "layer_norm_eps": 1e-12,
73
  "max_position_embeddings": 512,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ab501c2752aa33c764b4b1f16c51e3c30661c55431371680390759bffb2e9bfa
3
- size 711523440
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c931d7ea2a54ba0055001f602f5415c0038975bb5b2dacab3db314c831de8a69
3
+ size 711520364
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6cdfb005f400a59e515b4d9a8d6c206c8c79c3468622a64e065c95886147779b
3
  size 4984
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fea6bc200627f24de74e9d30642e6bdb4f4617636c1586b85127fb98d22fd50
3
  size 4984