End of training
Browse files- README.md +26 -26
- logs/events.out.tfevents.1682457843.e3fb78822401.309.0 +2 -2
- pytorch_model.bin +1 -1
- tokenizer.json +16 -2
- tokenizer_config.json +1 -1
README.md
CHANGED
@@ -15,14 +15,14 @@ should probably proofread and complete it, then remove this comment. -->
|
|
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: 0.
|
19 |
-
- Answer: {'precision': 0.
|
20 |
-
- Header: {'precision': 0.
|
21 |
-
- Question: {'precision': 0.
|
22 |
-
- Overall Precision: 0.
|
23 |
-
- Overall Recall: 0.
|
24 |
-
- Overall F1: 0.
|
25 |
-
- Overall Accuracy: 0.
|
26 |
|
27 |
## Model description
|
28 |
|
@@ -52,28 +52,28 @@ The following hyperparameters were used during training:
|
|
52 |
|
53 |
### Training results
|
54 |
|
55 |
-
| Training Loss | Epoch | Step | Validation Loss | Answer
|
56 |
-
|
57 |
-
| 1.
|
58 |
-
| 1.
|
59 |
-
| 1.
|
60 |
-
| 0.
|
61 |
-
| 0.
|
62 |
-
| 0.
|
63 |
-
| 0.
|
64 |
-
| 0.
|
65 |
-
| 0.
|
66 |
-
| 0.
|
67 |
-
| 0.
|
68 |
-
| 0.
|
69 |
-
| 0.
|
70 |
-
| 0.
|
71 |
-
| 0.
|
72 |
|
73 |
|
74 |
### Framework versions
|
75 |
|
76 |
-
- Transformers 4.
|
77 |
- Pytorch 2.0.0+cu118
|
78 |
- Datasets 2.11.0
|
79 |
- Tokenizers 0.13.3
|
|
|
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: 0.6664
|
19 |
+
- Answer: {'precision': 0.7112597547380156, 'recall': 0.788627935723115, 'f1': 0.7479484173505275, 'number': 809}
|
20 |
+
- Header: {'precision': 0.3125, 'recall': 0.33613445378151263, 'f1': 0.3238866396761134, 'number': 119}
|
21 |
+
- Question: {'precision': 0.7686308492201039, 'recall': 0.8328638497652582, 'f1': 0.7994592158630013, 'number': 1065}
|
22 |
+
- Overall Precision: 0.7182
|
23 |
+
- Overall Recall: 0.7852
|
24 |
+
- Overall F1: 0.7502
|
25 |
+
- Overall Accuracy: 0.8137
|
26 |
|
27 |
## Model description
|
28 |
|
|
|
52 |
|
53 |
### Training results
|
54 |
|
55 |
+
| Training Loss | Epoch | Step | Validation Loss | Answer | Header | Question | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
|
56 |
+
|:-------------:|:-----:|:----:|:---------------:|:------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
|
57 |
+
| 1.7752 | 1.0 | 10 | 1.5645 | {'precision': 0.02685765443151298, 'recall': 0.037082818294190356, 'f1': 0.03115264797507788, 'number': 809} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 119} | {'precision': 0.19323308270676692, 'recall': 0.24131455399061033, 'f1': 0.21461377870563672, 'number': 1065} | 0.1173 | 0.1440 | 0.1293 | 0.4207 |
|
58 |
+
| 1.4375 | 2.0 | 20 | 1.2207 | {'precision': 0.22950819672131148, 'recall': 0.207663782447466, 'f1': 0.21804023361453603, 'number': 809} | {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 119} | {'precision': 0.4551231135822081, 'recall': 0.5380281690140845, 'f1': 0.49311531841652323, 'number': 1065} | 0.3722 | 0.3718 | 0.3720 | 0.6009 |
|
59 |
+
| 1.0629 | 3.0 | 30 | 0.9366 | {'precision': 0.5080558539205156, 'recall': 0.584672435105068, 'f1': 0.5436781609195401, 'number': 809} | {'precision': 0.05263157894736842, 'recall': 0.01680672268907563, 'f1': 0.025477707006369428, 'number': 119} | {'precision': 0.6047700170357752, 'recall': 0.6666666666666666, 'f1': 0.6342117016525234, 'number': 1065} | 0.5530 | 0.5946 | 0.5730 | 0.7167 |
|
60 |
+
| 0.8176 | 4.0 | 40 | 0.7694 | {'precision': 0.6136125654450262, 'recall': 0.7243510506798516, 'f1': 0.6643990929705216, 'number': 809} | {'precision': 0.23214285714285715, 'recall': 0.1092436974789916, 'f1': 0.14857142857142858, 'number': 119} | {'precision': 0.6804214223002634, 'recall': 0.7276995305164319, 'f1': 0.7032667876588022, 'number': 1065} | 0.6391 | 0.6894 | 0.6633 | 0.7641 |
|
61 |
+
| 0.6768 | 5.0 | 50 | 0.6961 | {'precision': 0.6569264069264069, 'recall': 0.7503090234857849, 'f1': 0.7005193306405079, 'number': 809} | {'precision': 0.3023255813953488, 'recall': 0.2184873949579832, 'f1': 0.25365853658536586, 'number': 119} | {'precision': 0.71733561058924, 'recall': 0.7887323943661971, 'f1': 0.7513416815742396, 'number': 1065} | 0.6754 | 0.7391 | 0.7058 | 0.7853 |
|
62 |
+
| 0.5649 | 6.0 | 60 | 0.6814 | {'precision': 0.6666666666666666, 'recall': 0.7688504326328801, 'f1': 0.7141216991963261, 'number': 809} | {'precision': 0.26582278481012656, 'recall': 0.17647058823529413, 'f1': 0.2121212121212121, 'number': 119} | {'precision': 0.6886134779240899, 'recall': 0.8347417840375587, 'f1': 0.7546689303904924, 'number': 1065} | 0.6652 | 0.7687 | 0.7132 | 0.7948 |
|
63 |
+
| 0.4953 | 7.0 | 70 | 0.6521 | {'precision': 0.6859956236323851, 'recall': 0.7750309023485785, 'f1': 0.7278003482298316, 'number': 809} | {'precision': 0.2616822429906542, 'recall': 0.23529411764705882, 'f1': 0.24778761061946902, 'number': 119} | {'precision': 0.7305439330543934, 'recall': 0.819718309859155, 'f1': 0.772566371681416, 'number': 1065} | 0.6895 | 0.7667 | 0.7261 | 0.8031 |
|
64 |
+
| 0.4505 | 8.0 | 80 | 0.6362 | {'precision': 0.6862326574172892, 'recall': 0.7948084054388134, 'f1': 0.736540664375716, 'number': 809} | {'precision': 0.25, 'recall': 0.226890756302521, 'f1': 0.2378854625550661, 'number': 119} | {'precision': 0.7349498327759197, 'recall': 0.8253521126760563, 'f1': 0.777532065457762, 'number': 1065} | 0.6912 | 0.7772 | 0.7317 | 0.8080 |
|
65 |
+
| 0.397 | 9.0 | 90 | 0.6430 | {'precision': 0.6900647948164147, 'recall': 0.7898640296662547, 'f1': 0.736599423631124, 'number': 809} | {'precision': 0.28, 'recall': 0.29411764705882354, 'f1': 0.28688524590163933, 'number': 119} | {'precision': 0.753448275862069, 'recall': 0.8206572769953052, 'f1': 0.7856179775280899, 'number': 1065} | 0.7001 | 0.7767 | 0.7364 | 0.8049 |
|
66 |
+
| 0.3588 | 10.0 | 100 | 0.6462 | {'precision': 0.7008830022075055, 'recall': 0.7849196538936959, 'f1': 0.7405247813411079, 'number': 809} | {'precision': 0.2868217054263566, 'recall': 0.31092436974789917, 'f1': 0.2983870967741935, 'number': 119} | {'precision': 0.7519247219846023, 'recall': 0.8253521126760563, 'f1': 0.7869292748433303, 'number': 1065} | 0.7037 | 0.7782 | 0.7391 | 0.8104 |
|
67 |
+
| 0.3204 | 11.0 | 110 | 0.6551 | {'precision': 0.7098901098901099, 'recall': 0.7985166872682324, 'f1': 0.7515997673065736, 'number': 809} | {'precision': 0.3125, 'recall': 0.29411764705882354, 'f1': 0.30303030303030304, 'number': 119} | {'precision': 0.7634782608695653, 'recall': 0.8244131455399061, 'f1': 0.7927765237020317, 'number': 1065} | 0.7178 | 0.7822 | 0.7486 | 0.8087 |
|
68 |
+
| 0.306 | 12.0 | 120 | 0.6609 | {'precision': 0.7067833698030634, 'recall': 0.7985166872682324, 'f1': 0.7498549042367965, 'number': 809} | {'precision': 0.3064516129032258, 'recall': 0.31932773109243695, 'f1': 0.31275720164609055, 'number': 119} | {'precision': 0.7647569444444444, 'recall': 0.8272300469483568, 'f1': 0.7947677041046459, 'number': 1065} | 0.7146 | 0.7852 | 0.7483 | 0.8091 |
|
69 |
+
| 0.2865 | 13.0 | 130 | 0.6623 | {'precision': 0.7144456886898096, 'recall': 0.788627935723115, 'f1': 0.7497062279670975, 'number': 809} | {'precision': 0.3125, 'recall': 0.33613445378151263, 'f1': 0.3238866396761134, 'number': 119} | {'precision': 0.7650130548302873, 'recall': 0.8253521126760563, 'f1': 0.7940379403794038, 'number': 1065} | 0.7175 | 0.7812 | 0.7480 | 0.8137 |
|
70 |
+
| 0.2728 | 14.0 | 140 | 0.6639 | {'precision': 0.7112831858407079, 'recall': 0.7948084054388134, 'f1': 0.7507297139521306, 'number': 809} | {'precision': 0.29133858267716534, 'recall': 0.31092436974789917, 'f1': 0.3008130081300813, 'number': 119} | {'precision': 0.7649092480553155, 'recall': 0.8309859154929577, 'f1': 0.7965796579657966, 'number': 1065} | 0.7153 | 0.7852 | 0.7486 | 0.8131 |
|
71 |
+
| 0.2747 | 15.0 | 150 | 0.6664 | {'precision': 0.7112597547380156, 'recall': 0.788627935723115, 'f1': 0.7479484173505275, 'number': 809} | {'precision': 0.3125, 'recall': 0.33613445378151263, 'f1': 0.3238866396761134, 'number': 119} | {'precision': 0.7686308492201039, 'recall': 0.8328638497652582, 'f1': 0.7994592158630013, 'number': 1065} | 0.7182 | 0.7852 | 0.7502 | 0.8137 |
|
72 |
|
73 |
|
74 |
### Framework versions
|
75 |
|
76 |
+
- Transformers 4.28.1
|
77 |
- Pytorch 2.0.0+cu118
|
78 |
- Datasets 2.11.0
|
79 |
- Tokenizers 0.13.3
|
logs/events.out.tfevents.1682457843.e3fb78822401.309.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7f7f64ea05b335f95be1522a9235f88158d65c45ffdb80af9b8ef18f57ed6a41
|
3 |
+
size 14372
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 450608389
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:90d1b959e1ea50997df071d34b4f7e285327004d21a9abca94cd41d2b036bca6
|
3 |
size 450608389
|
tokenizer.json
CHANGED
@@ -1,7 +1,21 @@
|
|
1 |
{
|
2 |
"version": "1.0",
|
3 |
-
"truncation":
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
"added_tokens": [
|
6 |
{
|
7 |
"id": 0,
|
|
|
1 |
{
|
2 |
"version": "1.0",
|
3 |
+
"truncation": {
|
4 |
+
"direction": "Right",
|
5 |
+
"max_length": 512,
|
6 |
+
"strategy": "LongestFirst",
|
7 |
+
"stride": 0
|
8 |
+
},
|
9 |
+
"padding": {
|
10 |
+
"strategy": {
|
11 |
+
"Fixed": 512
|
12 |
+
},
|
13 |
+
"direction": "Right",
|
14 |
+
"pad_to_multiple_of": null,
|
15 |
+
"pad_id": 0,
|
16 |
+
"pad_type_id": 0,
|
17 |
+
"pad_token": "[PAD]"
|
18 |
+
},
|
19 |
"added_tokens": [
|
20 |
{
|
21 |
"id": 0,
|
tokenizer_config.json
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
{
|
2 |
"additional_special_tokens": null,
|
3 |
"apply_ocr": false,
|
|
|
4 |
"cls_token": "[CLS]",
|
5 |
"cls_token_box": [
|
6 |
0,
|
@@ -30,7 +31,6 @@
|
|
30 |
1000,
|
31 |
1000
|
32 |
],
|
33 |
-
"special_tokens_map_file": null,
|
34 |
"strip_accents": null,
|
35 |
"tokenize_chinese_chars": true,
|
36 |
"tokenizer_class": "LayoutLMv2Tokenizer",
|
|
|
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,
|
|
|
31 |
1000,
|
32 |
1000
|
33 |
],
|
|
|
34 |
"strip_accents": null,
|
35 |
"tokenize_chinese_chars": true,
|
36 |
"tokenizer_class": "LayoutLMv2Tokenizer",
|