suruchi commited on
Commit
4fd09fe
·
1 Parent(s): ce868b1

End of training

Browse files
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ datasets:
5
+ - funsd
6
+ model-index:
7
+ - name: layoutlm-funsd
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # layoutlm-funsd
15
+
16
+ This model is a fine-tuned version of [microsoft/layoutlm-base-uncased](https://huggingface.co/microsoft/layoutlm-base-uncased) on the funsd dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 1.1493
19
+ - Answer: {'precision': 0.22598870056497175, 'recall': 0.19777503090234858, 'f1': 0.2109426499670402, 'number': 809}
20
+ - Header: {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 119}
21
+ - Question: {'precision': 0.5350523771152297, 'recall': 0.6234741784037559, 'f1': 0.5758889852558543, 'number': 1065}
22
+ - Overall Precision: 0.4228
23
+ - Overall Recall: 0.4134
24
+ - Overall F1: 0.4181
25
+ - Overall Accuracy: 0.6373
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - learning_rate: 3e-05
45
+ - train_batch_size: 16
46
+ - eval_batch_size: 8
47
+ - seed: 42
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: linear
50
+ - num_epochs: 3
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss | Answer | Header | Question | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
55
+ |:-------------:|:-----:|:----:|:---------------:|:------------------------------------------------------------------------------------------------------------:|:-----------------------------------------------------------:|:-----------------------------------------------------------------------------------------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
56
+ | 1.6256 | 1.0 | 10 | 1.4524 | {'precision': 0.05670665212649945, 'recall': 0.06427688504326329, 'f1': 0.060254924681344156, 'number': 809} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 119} | {'precision': 0.3111913357400722, 'recall': 0.40469483568075115, 'f1': 0.35183673469387755, 'number': 1065} | 0.2098 | 0.2423 | 0.2249 | 0.4826 |
57
+ | 1.3478 | 2.0 | 20 | 1.2324 | {'precision': 0.14285714285714285, 'recall': 0.1211372064276885, 'f1': 0.1311036789297659, 'number': 809} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 119} | {'precision': 0.4789156626506024, 'recall': 0.5971830985915493, 'f1': 0.5315503552026745, 'number': 1065} | 0.3644 | 0.3683 | 0.3664 | 0.5977 |
58
+ | 1.155 | 3.0 | 30 | 1.1493 | {'precision': 0.22598870056497175, 'recall': 0.19777503090234858, 'f1': 0.2109426499670402, 'number': 809} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 119} | {'precision': 0.5350523771152297, 'recall': 0.6234741784037559, 'f1': 0.5758889852558543, 'number': 1065} | 0.4228 | 0.4134 | 0.4181 | 0.6373 |
59
+
60
+
61
+ ### Framework versions
62
+
63
+ - Transformers 4.28.0
64
+ - Pytorch 2.0.1+cpu
65
+ - Datasets 2.14.4
66
+ - Tokenizers 0.13.3
logs/events.out.tfevents.1696245739.LAPTOP-VS3LQCIS.17404.2 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5ef6a9755c6f0d78205b4b9c5b622c7fb7c7c3057722fbd3e1c78eaed1ee85d4
3
- size 6190
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:127d09f3c13054262c7826d9e70a2a4d02d19f88d63121664a232eafa26efa50
3
+ size 6538
preprocessor_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "apply_ocr": true,
3
+ "do_resize": true,
4
+ "feature_extractor_type": "LayoutLMv2FeatureExtractor",
5
+ "image_processor_type": "LayoutLMv2ImageProcessor",
6
+ "ocr_lang": null,
7
+ "processor_class": "LayoutLMv2Processor",
8
+ "resample": 2,
9
+ "size": {
10
+ "height": 224,
11
+ "width": 224
12
+ },
13
+ "tesseract_config": ""
14
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": null,
3
+ "apply_ocr": false,
4
+ "clean_up_tokenization_spaces": true,
5
+ "cls_token": "[CLS]",
6
+ "cls_token_box": [
7
+ 0,
8
+ 0,
9
+ 0,
10
+ 0
11
+ ],
12
+ "do_basic_tokenize": true,
13
+ "do_lower_case": true,
14
+ "mask_token": "[MASK]",
15
+ "model_max_length": 512,
16
+ "never_split": null,
17
+ "only_label_first_subword": true,
18
+ "pad_token": "[PAD]",
19
+ "pad_token_box": [
20
+ 0,
21
+ 0,
22
+ 0,
23
+ 0
24
+ ],
25
+ "pad_token_label": -100,
26
+ "processor_class": "LayoutLMv2Processor",
27
+ "sep_token": "[SEP]",
28
+ "sep_token_box": [
29
+ 1000,
30
+ 1000,
31
+ 1000,
32
+ 1000
33
+ ],
34
+ "strip_accents": null,
35
+ "tokenize_chinese_chars": true,
36
+ "tokenizer_class": "LayoutLMv2Tokenizer",
37
+ "unk_token": "[UNK]"
38
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff