ryanyip7777 commited on
Commit
40200f6
·
1 Parent(s): f36fb83

Upload 5 files

Browse files

classifier patient's intent of input sentence

Files changed (5) hide show
  1. config.json +136 -0
  2. intent_classifier.log +40 -0
  3. pytorch_model.bin +3 -0
  4. training_args.bin +3 -0
  5. vocab.txt +0 -0
config.json ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./intent_test/checkpoint-60",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "directionality": "bidi",
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "LABEL_0",
14
+ "1": "LABEL_1",
15
+ "2": "LABEL_2",
16
+ "3": "LABEL_3",
17
+ "4": "LABEL_4",
18
+ "5": "LABEL_5",
19
+ "6": "LABEL_6",
20
+ "7": "LABEL_7",
21
+ "8": "LABEL_8",
22
+ "9": "LABEL_9",
23
+ "10": "LABEL_10",
24
+ "11": "LABEL_11",
25
+ "12": "LABEL_12",
26
+ "13": "LABEL_13",
27
+ "14": "LABEL_14",
28
+ "15": "LABEL_15",
29
+ "16": "LABEL_16",
30
+ "17": "LABEL_17",
31
+ "18": "LABEL_18",
32
+ "19": "LABEL_19",
33
+ "20": "LABEL_20",
34
+ "21": "LABEL_21",
35
+ "22": "LABEL_22",
36
+ "23": "LABEL_23",
37
+ "24": "LABEL_24",
38
+ "25": "LABEL_25",
39
+ "26": "LABEL_26",
40
+ "27": "LABEL_27",
41
+ "28": "LABEL_28",
42
+ "29": "LABEL_29",
43
+ "30": "LABEL_30",
44
+ "31": "LABEL_31",
45
+ "32": "LABEL_32",
46
+ "33": "LABEL_33",
47
+ "34": "LABEL_34",
48
+ "35": "LABEL_35",
49
+ "36": "LABEL_36",
50
+ "37": "LABEL_37",
51
+ "38": "LABEL_38",
52
+ "39": "LABEL_39",
53
+ "40": "LABEL_40",
54
+ "41": "LABEL_41",
55
+ "42": "LABEL_42",
56
+ "43": "LABEL_43",
57
+ "44": "LABEL_44",
58
+ "45": "LABEL_45",
59
+ "46": "LABEL_46",
60
+ "47": "LABEL_47",
61
+ "48": "LABEL_48",
62
+ "49": "LABEL_49"
63
+ },
64
+ "initializer_range": 0.02,
65
+ "intermediate_size": 3072,
66
+ "label2id": {
67
+ "LABEL_0": 0,
68
+ "LABEL_1": 1,
69
+ "LABEL_10": 10,
70
+ "LABEL_11": 11,
71
+ "LABEL_12": 12,
72
+ "LABEL_13": 13,
73
+ "LABEL_14": 14,
74
+ "LABEL_15": 15,
75
+ "LABEL_16": 16,
76
+ "LABEL_17": 17,
77
+ "LABEL_18": 18,
78
+ "LABEL_19": 19,
79
+ "LABEL_2": 2,
80
+ "LABEL_20": 20,
81
+ "LABEL_21": 21,
82
+ "LABEL_22": 22,
83
+ "LABEL_23": 23,
84
+ "LABEL_24": 24,
85
+ "LABEL_25": 25,
86
+ "LABEL_26": 26,
87
+ "LABEL_27": 27,
88
+ "LABEL_28": 28,
89
+ "LABEL_29": 29,
90
+ "LABEL_3": 3,
91
+ "LABEL_30": 30,
92
+ "LABEL_31": 31,
93
+ "LABEL_32": 32,
94
+ "LABEL_33": 33,
95
+ "LABEL_34": 34,
96
+ "LABEL_35": 35,
97
+ "LABEL_36": 36,
98
+ "LABEL_37": 37,
99
+ "LABEL_38": 38,
100
+ "LABEL_39": 39,
101
+ "LABEL_4": 4,
102
+ "LABEL_40": 40,
103
+ "LABEL_41": 41,
104
+ "LABEL_42": 42,
105
+ "LABEL_43": 43,
106
+ "LABEL_44": 44,
107
+ "LABEL_45": 45,
108
+ "LABEL_46": 46,
109
+ "LABEL_47": 47,
110
+ "LABEL_48": 48,
111
+ "LABEL_49": 49,
112
+ "LABEL_5": 5,
113
+ "LABEL_6": 6,
114
+ "LABEL_7": 7,
115
+ "LABEL_8": 8,
116
+ "LABEL_9": 9
117
+ },
118
+ "layer_norm_eps": 1e-12,
119
+ "max_position_embeddings": 512,
120
+ "model_type": "bert",
121
+ "num_attention_heads": 12,
122
+ "num_hidden_layers": 12,
123
+ "pad_token_id": 0,
124
+ "pooler_fc_size": 768,
125
+ "pooler_num_attention_heads": 12,
126
+ "pooler_num_fc_layers": 3,
127
+ "pooler_size_per_head": 128,
128
+ "pooler_type": "first_token_transform",
129
+ "position_embedding_type": "absolute",
130
+ "problem_type": "single_label_classification",
131
+ "torch_dtype": "float32",
132
+ "transformers_version": "4.27.1",
133
+ "type_vocab_size": 2,
134
+ "use_cache": true,
135
+ "vocab_size": 21128
136
+ }
intent_classifier.log ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Training/evaluation parameters Namespace(data_dir='intent_example/', model_dir='/data/ryanyip/huggingface-models/', model_name='mc_bert_base', output_dir='./intent_test', do_train=True, do_predict=False, result_output_dir='./intent_test/result/', max_length=128, train_batch_size=8, eval_batch_size=8, learning_rate=5e-05, weight_decay=0.01, adam_epsilon=1e-08, max_grad_norm=1.0, epochs=3, warmup_proportion=0.1, earlystop_patience=2, logging_steps=10, save_steps=1000, seed=2021, device=device(type='cuda'), model_type='bert', task_name='qic')
2
+ ***** Running training *****
3
+ Num samples 1350
4
+ Num epochs 3
5
+ Num training steps 507
6
+ Num warmup steps 50
7
+ ***** Running evaluation *****
8
+ Num samples 170
9
+ qic-mc_bert_base acc: 0.1
10
+ Saving models checkpoint to ./intent_test/checkpoint-10
11
+ ***** Running evaluation *****
12
+ Num samples 170
13
+ qic-mc_bert_base acc: 0.18823529411764706
14
+ Saving models checkpoint to ./intent_test/checkpoint-20
15
+ ***** Running evaluation *****
16
+ Num samples 170
17
+ qic-mc_bert_base acc: 0.2235294117647059
18
+ Saving models checkpoint to ./intent_test/checkpoint-30
19
+ ***** Running evaluation *****
20
+ Num samples 170
21
+ qic-mc_bert_base acc: 0.24705882352941178
22
+ Saving models checkpoint to ./intent_test/checkpoint-40
23
+ ***** Running evaluation *****
24
+ Num samples 170
25
+ qic-mc_bert_base acc: 0.2529411764705882
26
+ Saving models checkpoint to ./intent_test/checkpoint-50
27
+ ***** Running evaluation *****
28
+ Num samples 170
29
+ qic-mc_bert_base acc: 0.32941176470588235
30
+ Saving models checkpoint to ./intent_test/checkpoint-60
31
+ ***** Running evaluation *****
32
+ Num samples 170
33
+ qic-mc_bert_base acc: 0.2647058823529412
34
+ Earlystopper counter: 1 out of 2
35
+ ***** Running evaluation *****
36
+ Num samples 170
37
+ qic-mc_bert_base acc: 0.27647058823529413
38
+ Earlystopper counter: 2 out of 2
39
+ Training Stop! The best step 60: 0.32941176470588235
40
+ Saving models checkpoint to ./intent_test
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd1cc1311fd3bbd47dd7fe855c4733a26d1e8579946b203b3f07dea1e24132df
3
+ size 409292589
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d83cfbe9e3ce7ee5b2769cda212ca8e1ebe8d0c2a2cefc9862c4b93d9c16089
3
+ size 1071
vocab.txt ADDED
The diff for this file is too large to render. See raw diff