cor-c commited on
Commit
778d079
1 Parent(s): 8126aa7

Training in progress epoch 0

Browse files
Files changed (3) hide show
  1. README.md +58 -0
  2. config.json +75 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: microsoft/layoutlm-base-uncased
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: cor-c/layoutlm-cord-tf
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
+ # cor-c/layoutlm-cord-tf
15
+
16
+ This model is a fine-tuned version of [microsoft/layoutlm-base-uncased](https://huggingface.co/microsoft/layoutlm-base-uncased) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Train Loss: 1.3129
19
+ - Validation Loss: 0.5622
20
+ - Train Overall Precision: 0.8065
21
+ - Train Overall Recall: 0.8120
22
+ - Train Overall F1: 0.8093
23
+ - Train Overall Accuracy: 0.8579
24
+ - Epoch: 0
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': 3e-05, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False, 'weight_decay_rate': 0.01}
44
+ - training_precision: mixed_float16
45
+
46
+ ### Training results
47
+
48
+ | Train Loss | Validation Loss | Train Overall Precision | Train Overall Recall | Train Overall F1 | Train Overall Accuracy | Epoch |
49
+ |:----------:|:---------------:|:-----------------------:|:--------------------:|:----------------:|:----------------------:|:-----:|
50
+ | 1.3129 | 0.5622 | 0.8065 | 0.8120 | 0.8093 | 0.8579 | 0 |
51
+
52
+
53
+ ### Framework versions
54
+
55
+ - Transformers 4.41.0.dev0
56
+ - TensorFlow 2.16.1
57
+ - Datasets 2.19.1
58
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/layoutlm-base-uncased",
3
+ "architectures": [
4
+ "LayoutLMForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.1,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "O",
12
+ "1": "I-menu.cnt",
13
+ "2": "I-menu.discountprice",
14
+ "3": "I-menu.nm",
15
+ "4": "I-menu.num",
16
+ "5": "I-menu.price",
17
+ "6": "I-menu.sub_cnt",
18
+ "7": "I-menu.sub_nm",
19
+ "8": "I-menu.sub_price",
20
+ "9": "I-menu.unitprice",
21
+ "10": "I-sub_total.discount_price",
22
+ "11": "I-sub_total.etc",
23
+ "12": "I-sub_total.service_price",
24
+ "13": "I-sub_total.subtotal_price",
25
+ "14": "I-sub_total.tax_price",
26
+ "15": "I-total.cashprice",
27
+ "16": "I-total.changeprice",
28
+ "17": "I-total.creditcardprice",
29
+ "18": "I-total.emoneyprice",
30
+ "19": "I-total.menuqty_cnt",
31
+ "20": "I-total.menutype_cnt",
32
+ "21": "I-total.total_etc",
33
+ "22": "I-total.total_price"
34
+ },
35
+ "initializer_range": 0.02,
36
+ "intermediate_size": 3072,
37
+ "label2id": {
38
+ "I-menu.cnt": 1,
39
+ "I-menu.discountprice": 2,
40
+ "I-menu.nm": 3,
41
+ "I-menu.num": 4,
42
+ "I-menu.price": 5,
43
+ "I-menu.sub_cnt": 6,
44
+ "I-menu.sub_nm": 7,
45
+ "I-menu.sub_price": 8,
46
+ "I-menu.unitprice": 9,
47
+ "I-sub_total.discount_price": 10,
48
+ "I-sub_total.etc": 11,
49
+ "I-sub_total.service_price": 12,
50
+ "I-sub_total.subtotal_price": 13,
51
+ "I-sub_total.tax_price": 14,
52
+ "I-total.cashprice": 15,
53
+ "I-total.changeprice": 16,
54
+ "I-total.creditcardprice": 17,
55
+ "I-total.emoneyprice": 18,
56
+ "I-total.menuqty_cnt": 19,
57
+ "I-total.menutype_cnt": 20,
58
+ "I-total.total_etc": 21,
59
+ "I-total.total_price": 22,
60
+ "O": 0
61
+ },
62
+ "layer_norm_eps": 1e-12,
63
+ "max_2d_position_embeddings": 1024,
64
+ "max_position_embeddings": 512,
65
+ "model_type": "layoutlm",
66
+ "num_attention_heads": 12,
67
+ "num_hidden_layers": 12,
68
+ "output_past": true,
69
+ "pad_token_id": 0,
70
+ "position_embedding_type": "absolute",
71
+ "transformers_version": "4.41.0.dev0",
72
+ "type_vocab_size": 2,
73
+ "use_cache": true,
74
+ "vocab_size": 30522
75
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f1e92f10307d37203e5dfc0fa2962db4f234e03df1ee2fbbe7d50eee0a077ba
3
+ size 450878408