kyungmin011029
commited on
Commit
•
711f59f
1
Parent(s):
37a2345
Upload TFBertForSequenceClassification
Browse files- README.md +60 -0
- config.json +132 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: category4
|
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 |
+
# category4
|
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.2658
|
19 |
+
- Train Accuracy: 1.0
|
20 |
+
- Validation Loss: 0.3699
|
21 |
+
- Validation Accuracy: 0.9485
|
22 |
+
- Epoch: 5
|
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.5847 | 0.1529 | 3.1016 | 0.3402 | 0 |
|
49 |
+
| 2.5797 | 0.5701 | 2.1027 | 0.7216 | 1 |
|
50 |
+
| 1.5816 | 0.8793 | 1.1963 | 0.9175 | 2 |
|
51 |
+
| 0.8647 | 0.9690 | 0.7416 | 0.9381 | 3 |
|
52 |
+
| 0.4668 | 0.9954 | 0.5027 | 0.9485 | 4 |
|
53 |
+
| 0.2658 | 1.0 | 0.3699 | 0.9485 | 5 |
|
54 |
+
|
55 |
+
|
56 |
+
### Framework versions
|
57 |
+
|
58 |
+
- Transformers 4.31.0
|
59 |
+
- TensorFlow 2.12.0
|
60 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"47": "LABEL_47",
|
60 |
+
"48": "LABEL_48",
|
61 |
+
"49": "LABEL_49",
|
62 |
+
"50": "LABEL_50",
|
63 |
+
"51": "LABEL_51"
|
64 |
+
},
|
65 |
+
"initializer_range": 0.02,
|
66 |
+
"intermediate_size": 3072,
|
67 |
+
"label2id": {
|
68 |
+
"LABEL_0": 0,
|
69 |
+
"LABEL_1": 1,
|
70 |
+
"LABEL_10": 10,
|
71 |
+
"LABEL_11": 11,
|
72 |
+
"LABEL_12": 12,
|
73 |
+
"LABEL_13": 13,
|
74 |
+
"LABEL_14": 14,
|
75 |
+
"LABEL_15": 15,
|
76 |
+
"LABEL_16": 16,
|
77 |
+
"LABEL_17": 17,
|
78 |
+
"LABEL_18": 18,
|
79 |
+
"LABEL_19": 19,
|
80 |
+
"LABEL_2": 2,
|
81 |
+
"LABEL_20": 20,
|
82 |
+
"LABEL_21": 21,
|
83 |
+
"LABEL_22": 22,
|
84 |
+
"LABEL_23": 23,
|
85 |
+
"LABEL_24": 24,
|
86 |
+
"LABEL_25": 25,
|
87 |
+
"LABEL_26": 26,
|
88 |
+
"LABEL_27": 27,
|
89 |
+
"LABEL_28": 28,
|
90 |
+
"LABEL_29": 29,
|
91 |
+
"LABEL_3": 3,
|
92 |
+
"LABEL_30": 30,
|
93 |
+
"LABEL_31": 31,
|
94 |
+
"LABEL_32": 32,
|
95 |
+
"LABEL_33": 33,
|
96 |
+
"LABEL_34": 34,
|
97 |
+
"LABEL_35": 35,
|
98 |
+
"LABEL_36": 36,
|
99 |
+
"LABEL_37": 37,
|
100 |
+
"LABEL_38": 38,
|
101 |
+
"LABEL_39": 39,
|
102 |
+
"LABEL_4": 4,
|
103 |
+
"LABEL_40": 40,
|
104 |
+
"LABEL_41": 41,
|
105 |
+
"LABEL_42": 42,
|
106 |
+
"LABEL_43": 43,
|
107 |
+
"LABEL_44": 44,
|
108 |
+
"LABEL_45": 45,
|
109 |
+
"LABEL_46": 46,
|
110 |
+
"LABEL_47": 47,
|
111 |
+
"LABEL_48": 48,
|
112 |
+
"LABEL_49": 49,
|
113 |
+
"LABEL_5": 5,
|
114 |
+
"LABEL_50": 50,
|
115 |
+
"LABEL_51": 51,
|
116 |
+
"LABEL_6": 6,
|
117 |
+
"LABEL_7": 7,
|
118 |
+
"LABEL_8": 8,
|
119 |
+
"LABEL_9": 9
|
120 |
+
},
|
121 |
+
"layer_norm_eps": 1e-12,
|
122 |
+
"max_position_embeddings": 512,
|
123 |
+
"model_type": "bert",
|
124 |
+
"num_attention_heads": 12,
|
125 |
+
"num_hidden_layers": 12,
|
126 |
+
"pad_token_id": 0,
|
127 |
+
"position_embedding_type": "absolute",
|
128 |
+
"transformers_version": "4.31.0",
|
129 |
+
"type_vocab_size": 2,
|
130 |
+
"use_cache": true,
|
131 |
+
"vocab_size": 32000
|
132 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d03e2c848ae7415efe701f117c3ad03acf5b7838a15415ee8d78b3fb88cd6b12
|
3 |
+
size 442917344
|