
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

# passive_invoices_v3.12

This model is a fine-tuned version of [microsoft/layoutlmv3-base](https://huggingface.co/microsoft/layoutlmv3-base) on the sroie dataset.
It achieves the following results on the evaluation set:
- Loss: 0.0999
- Precision: 0.8694
- Recall: 0.9027
- F1: 0.8857
- Accuracy: 0.9777

## Model description

More information needed

## Intended uses & limitations

More information needed

## Training and evaluation data

More information needed

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- learning_rate: 1e-05
- train_batch_size: 2
- eval_batch_size: 2
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- training_steps: 15000

### Training results

| Training Loss | Epoch | Step  | Validation Loss | Precision | Recall | F1     | Accuracy |
|:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
| 1.0305        | 0.35  | 500   | 0.8322          | 0.1976    | 0.1066 | 0.1385 | 0.7883   |
| 0.502         | 0.69  | 1000  | 0.5026          | 0.4664    | 0.3706 | 0.4130 | 0.8703   |
| 0.3216        | 1.04  | 1500  | 0.3792          | 0.5530    | 0.5771 | 0.5648 | 0.9002   |
| 0.2177        | 1.39  | 2000  | 0.2814          | 0.6267    | 0.6588 | 0.6424 | 0.9234   |
| 0.1817        | 1.73  | 2500  | 0.2334          | 0.6835    | 0.7062 | 0.6947 | 0.9361   |
| 0.1345        | 2.08  | 3000  | 0.1841          | 0.7503    | 0.7484 | 0.7493 | 0.9520   |
| 0.1054        | 2.43  | 3500  | 0.1733          | 0.7571    | 0.7599 | 0.7585 | 0.9534   |
| 0.0993        | 2.77  | 4000  | 0.1633          | 0.7567    | 0.7971 | 0.7764 | 0.9560   |
| 0.0851        | 3.12  | 4500  | 0.1449          | 0.7763    | 0.8204 | 0.7977 | 0.9632   |
| 0.0732        | 3.47  | 5000  | 0.1374          | 0.8012    | 0.8389 | 0.8196 | 0.9640   |
| 0.0688        | 3.81  | 5500  | 0.1366          | 0.7962    | 0.8510 | 0.8227 | 0.9644   |
| 0.0557        | 4.16  | 6000  | 0.1219          | 0.8212    | 0.8618 | 0.8410 | 0.9697   |
| 0.0597        | 4.51  | 6500  | 0.1228          | 0.8226    | 0.8667 | 0.8441 | 0.9686   |
| 0.0531        | 4.85  | 7000  | 0.1174          | 0.8384    | 0.8627 | 0.8503 | 0.9708   |
| 0.0496        | 5.2   | 7500  | 0.1112          | 0.8531    | 0.8671 | 0.8601 | 0.9727   |
| 0.042         | 5.55  | 8000  | 0.1094          | 0.8454    | 0.8817 | 0.8631 | 0.9736   |
| 0.0422        | 5.89  | 8500  | 0.1085          | 0.8324    | 0.8823 | 0.8566 | 0.9723   |
| 0.0423        | 6.24  | 9000  | 0.1093          | 0.8523    | 0.8767 | 0.8644 | 0.9737   |
| 0.0385        | 6.59  | 9500  | 0.1075          | 0.8505    | 0.8853 | 0.8675 | 0.9742   |
| 0.0329        | 6.93  | 10000 | 0.1040          | 0.8569    | 0.8918 | 0.8740 | 0.9760   |
| 0.0347        | 7.28  | 10500 | 0.1010          | 0.8654    | 0.8960 | 0.8804 | 0.9774   |
| 0.0283        | 7.63  | 11000 | 0.1060          | 0.8672    | 0.8912 | 0.8790 | 0.9764   |
| 0.0355        | 7.98  | 11500 | 0.1057          | 0.8570    | 0.8941 | 0.8752 | 0.9751   |
| 0.0291        | 8.32  | 12000 | 0.1023          | 0.8680    | 0.8932 | 0.8804 | 0.9770   |
| 0.0249        | 8.67  | 12500 | 0.1020          | 0.8662    | 0.8982 | 0.8819 | 0.9770   |
| 0.0265        | 9.02  | 13000 | 0.1014          | 0.8681    | 0.9009 | 0.8842 | 0.9771   |
| 0.024         | 9.36  | 13500 | 0.1018          | 0.8687    | 0.9029 | 0.8855 | 0.9776   |
| 0.0242        | 9.71  | 14000 | 0.0987          | 0.8713    | 0.9012 | 0.8860 | 0.9779   |
| 0.0271        | 10.06 | 14500 | 0.1002          | 0.8669    | 0.9009 | 0.8836 | 0.9775   |
| 0.0226        | 10.4  | 15000 | 0.0999          | 0.8694    | 0.9027 | 0.8857 | 0.9777   |


### Framework versions

- Transformers 4.28.0
- Pytorch 2.1.0+cu121
- Datasets 2.2.2
- Tokenizers 0.13.3

{"license": "cc-by-nc-sa-4.0", "tags": ["generated_from_trainer"], "datasets": ["sroie"], "metrics": ["precision", "recall", "f1", "accuracy"], "model-index": [{"name": "passive_invoices_v3.12", "results": [{"task": {"type": "token-classification", "name": "Token Classification"}, "dataset": {"name": "sroie", "type": "sroie", "config": "discharge", "split": "test", "args": "discharge"}, "metrics": [{"type": "precision", "value": 0.8693800876643707, "name": "Precision"}, {"type": "recall", "value": 0.9027308192457737, "name": "Recall"}, {"type": "f1", "value": 0.8857416267942584, "name": "F1"}, {"type": "accuracy", "value": 0.9777202181649715, "name": "Accuracy"}]}]}]}
transformers pytorch tensorboard layoutlmv3 token-classification generated_from_trainer dataset:sroie license:cc-by-nc-sa-4.0 model-index autotrain_compatible endpoints_compatible region:us