kyungmin011029 commited on
Commit
0629bb2
1 Parent(s): 9daf6c5

Upload TFBertForSequenceClassification

Browse files
Files changed (3) hide show
  1. README.md +62 -0
  2. config.json +122 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ base_model: klue/bert-base
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: category2
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
12
+ probably proofread and complete it, then remove this comment. -->
13
+
14
+ # category2
15
+
16
+ This model is a fine-tuned version of [klue/bert-base](https://huggingface.co/klue/bert-base) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Train Loss: 0.1245
19
+ - Train Accuracy: 1.0
20
+ - Validation Loss: 0.3052
21
+ - Validation Accuracy: 0.9512
22
+ - Epoch: 7
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - optimizer: {'name': 'Adam', 'learning_rate': 5e-05, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
42
+ - training_precision: float32
43
+
44
+ ### Training results
45
+
46
+ | Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
47
+ |:----------:|:--------------:|:---------------:|:-------------------:|:-----:|
48
+ | 3.5655 | 0.1598 | 3.1279 | 0.4390 | 0 |
49
+ | 2.4666 | 0.6926 | 2.0870 | 0.7073 | 1 |
50
+ | 1.4274 | 0.9126 | 1.2408 | 0.8780 | 2 |
51
+ | 0.7632 | 0.9740 | 0.8015 | 0.8902 | 3 |
52
+ | 0.4298 | 0.9891 | 0.5613 | 0.9146 | 4 |
53
+ | 0.2529 | 1.0 | 0.4192 | 0.9268 | 5 |
54
+ | 0.1709 | 1.0 | 0.3459 | 0.9512 | 6 |
55
+ | 0.1245 | 1.0 | 0.3052 | 0.9512 | 7 |
56
+
57
+
58
+ ### Framework versions
59
+
60
+ - Transformers 4.31.0
61
+ - TensorFlow 2.12.0
62
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "klue/bert-base",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2",
15
+ "3": "LABEL_3",
16
+ "4": "LABEL_4",
17
+ "5": "LABEL_5",
18
+ "6": "LABEL_6",
19
+ "7": "LABEL_7",
20
+ "8": "LABEL_8",
21
+ "9": "LABEL_9",
22
+ "10": "LABEL_10",
23
+ "11": "LABEL_11",
24
+ "12": "LABEL_12",
25
+ "13": "LABEL_13",
26
+ "14": "LABEL_14",
27
+ "15": "LABEL_15",
28
+ "16": "LABEL_16",
29
+ "17": "LABEL_17",
30
+ "18": "LABEL_18",
31
+ "19": "LABEL_19",
32
+ "20": "LABEL_20",
33
+ "21": "LABEL_21",
34
+ "22": "LABEL_22",
35
+ "23": "LABEL_23",
36
+ "24": "LABEL_24",
37
+ "25": "LABEL_25",
38
+ "26": "LABEL_26",
39
+ "27": "LABEL_27",
40
+ "28": "LABEL_28",
41
+ "29": "LABEL_29",
42
+ "30": "LABEL_30",
43
+ "31": "LABEL_31",
44
+ "32": "LABEL_32",
45
+ "33": "LABEL_33",
46
+ "34": "LABEL_34",
47
+ "35": "LABEL_35",
48
+ "36": "LABEL_36",
49
+ "37": "LABEL_37",
50
+ "38": "LABEL_38",
51
+ "39": "LABEL_39",
52
+ "40": "LABEL_40",
53
+ "41": "LABEL_41",
54
+ "42": "LABEL_42",
55
+ "43": "LABEL_43",
56
+ "44": "LABEL_44",
57
+ "45": "LABEL_45",
58
+ "46": "LABEL_46"
59
+ },
60
+ "initializer_range": 0.02,
61
+ "intermediate_size": 3072,
62
+ "label2id": {
63
+ "LABEL_0": 0,
64
+ "LABEL_1": 1,
65
+ "LABEL_10": 10,
66
+ "LABEL_11": 11,
67
+ "LABEL_12": 12,
68
+ "LABEL_13": 13,
69
+ "LABEL_14": 14,
70
+ "LABEL_15": 15,
71
+ "LABEL_16": 16,
72
+ "LABEL_17": 17,
73
+ "LABEL_18": 18,
74
+ "LABEL_19": 19,
75
+ "LABEL_2": 2,
76
+ "LABEL_20": 20,
77
+ "LABEL_21": 21,
78
+ "LABEL_22": 22,
79
+ "LABEL_23": 23,
80
+ "LABEL_24": 24,
81
+ "LABEL_25": 25,
82
+ "LABEL_26": 26,
83
+ "LABEL_27": 27,
84
+ "LABEL_28": 28,
85
+ "LABEL_29": 29,
86
+ "LABEL_3": 3,
87
+ "LABEL_30": 30,
88
+ "LABEL_31": 31,
89
+ "LABEL_32": 32,
90
+ "LABEL_33": 33,
91
+ "LABEL_34": 34,
92
+ "LABEL_35": 35,
93
+ "LABEL_36": 36,
94
+ "LABEL_37": 37,
95
+ "LABEL_38": 38,
96
+ "LABEL_39": 39,
97
+ "LABEL_4": 4,
98
+ "LABEL_40": 40,
99
+ "LABEL_41": 41,
100
+ "LABEL_42": 42,
101
+ "LABEL_43": 43,
102
+ "LABEL_44": 44,
103
+ "LABEL_45": 45,
104
+ "LABEL_46": 46,
105
+ "LABEL_5": 5,
106
+ "LABEL_6": 6,
107
+ "LABEL_7": 7,
108
+ "LABEL_8": 8,
109
+ "LABEL_9": 9
110
+ },
111
+ "layer_norm_eps": 1e-12,
112
+ "max_position_embeddings": 512,
113
+ "model_type": "bert",
114
+ "num_attention_heads": 12,
115
+ "num_hidden_layers": 12,
116
+ "pad_token_id": 0,
117
+ "position_embedding_type": "absolute",
118
+ "transformers_version": "4.31.0",
119
+ "type_vocab_size": 2,
120
+ "use_cache": true,
121
+ "vocab_size": 32000
122
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9d9b6b9b382288d397144578df5b1f490e1025db8d3b0fb8c97fca6ec5c72fd
3
+ size 442901964