Karthikeya55 commited on
Commit
24f4908
·
1 Parent(s): 1d329a1

End of training

Browse files
Files changed (3) hide show
  1. README.md +63 -0
  2. config.json +43 -0
  3. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_keras_callback
4
+ model-index:
5
+ - name: layout_lm_fine_tune_funsd_dataset
6
+ results: []
7
+ ---
8
+
9
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
10
+ probably proofread and complete it, then remove this comment. -->
11
+
12
+ # layout_lm_fine_tune_funsd_dataset
13
+
14
+ This model is a fine-tuned version of [microsoft/layoutlm-base-uncased](https://huggingface.co/microsoft/layoutlm-base-uncased) on an unknown dataset.
15
+ It achieves the following results on the evaluation set:
16
+ - Train Loss: 0.2499
17
+ - Validation Loss: 0.6927
18
+ - Train Overall Precision: 0.7401
19
+ - Train Overall Recall: 0.8159
20
+ - Train Overall F1: 0.7761
21
+ - Train Overall Accuracy: 0.8046
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': '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}
42
+ - training_precision: mixed_float16
43
+
44
+ ### Training results
45
+
46
+ | Train Loss | Validation Loss | Train Overall Precision | Train Overall Recall | Train Overall F1 | Train Overall Accuracy | Epoch |
47
+ |:----------:|:---------------:|:-----------------------:|:--------------------:|:----------------:|:----------------------:|:-----:|
48
+ | 1.7326 | 1.4249 | 0.2261 | 0.2052 | 0.2151 | 0.5250 | 0 |
49
+ | 1.1901 | 0.9108 | 0.5753 | 0.6207 | 0.5972 | 0.7156 | 1 |
50
+ | 0.7777 | 0.7170 | 0.6511 | 0.7396 | 0.6925 | 0.7679 | 2 |
51
+ | 0.5681 | 0.6626 | 0.6988 | 0.7777 | 0.7362 | 0.7920 | 3 |
52
+ | 0.4449 | 0.6512 | 0.7236 | 0.7762 | 0.7490 | 0.8013 | 4 |
53
+ | 0.3576 | 0.6547 | 0.7251 | 0.7888 | 0.7556 | 0.8073 | 5 |
54
+ | 0.2910 | 0.6700 | 0.7380 | 0.7958 | 0.7658 | 0.8106 | 6 |
55
+ | 0.2499 | 0.6927 | 0.7401 | 0.8159 | 0.7761 | 0.8046 | 7 |
56
+
57
+
58
+ ### Framework versions
59
+
60
+ - Transformers 4.28.1
61
+ - TensorFlow 2.12.0
62
+ - Datasets 2.11.0
63
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "B-HEADER",
13
+ "2": "I-HEADER",
14
+ "3": "B-QUESTION",
15
+ "4": "I-QUESTION",
16
+ "5": "B-ANSWER",
17
+ "6": "I-ANSWER"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "B-ANSWER": 5,
23
+ "B-HEADER": 1,
24
+ "B-QUESTION": 3,
25
+ "I-ANSWER": 6,
26
+ "I-HEADER": 2,
27
+ "I-QUESTION": 4,
28
+ "O": 0
29
+ },
30
+ "layer_norm_eps": 1e-12,
31
+ "max_2d_position_embeddings": 1024,
32
+ "max_position_embeddings": 512,
33
+ "model_type": "layoutlm",
34
+ "num_attention_heads": 12,
35
+ "num_hidden_layers": 12,
36
+ "output_past": true,
37
+ "pad_token_id": 0,
38
+ "position_embedding_type": "absolute",
39
+ "transformers_version": "4.28.1",
40
+ "type_vocab_size": 2,
41
+ "use_cache": true,
42
+ "vocab_size": 30522
43
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ecb6f3338adc6d56442e0af447e0d8b7532c4e73d7a1a32feb8b50896cfeb6c
3
+ size 450829256