readme: ---
  license: cc-by-nc-sa-4.0
  tags:
  - generated_from_trainer
  model-index:
  - name: lmv2-g-rai_1-995-doc-10-18
    results: []
  ---
  
  <!-- 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. -->
  
  # lmv2-g-rai_1-995-doc-10-18
  
  This model is a fine-tuned version of [microsoft/layoutlmv2-base-uncased](https://huggingface.co/microsoft/layoutlmv2-base-uncased) on the None dataset.
  It achieves the following results on the evaluation set:
  - Loss: 0.0163
  - Dob Key Precision: 0.7638
  - Dob Key Recall: 0.7638
  - Dob Key F1: 0.7638
  - Dob Key Number: 127
  - Dob Value Precision: 0.9767
  - Dob Value Recall: 0.9767
  - Dob Value F1: 0.9767
  - Dob Value Number: 129
  - Doctor Name Key Precision: 0.6970
  - Doctor Name Key Recall: 0.6866
  - Doctor Name Key F1: 0.6917
  - Doctor Name Key Number: 67
  - Doctor Name Value Precision: 0.9275
  - Doctor Name Value Recall: 0.9143
  - Doctor Name Value F1: 0.9209
  - Doctor Name Value Number: 70
  - Patient Name Key Precision: 0.7055
  - Patient Name Key Recall: 0.7357
  - Patient Name Key F1: 0.7203
  - Patient Name Key Number: 140
  - Patient Name Value Precision: 0.9724
  - Patient Name Value Recall: 0.9792
  - Patient Name Value F1: 0.9758
  - Patient Name Value Number: 144
  - Overall Precision: 0.8460
  - Overall Recall: 0.8523
  - Overall F1: 0.8492
  - Overall Accuracy: 0.9958
  
  ## 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: 4e-05
  - train_batch_size: 1
  - eval_batch_size: 1
  - seed: 42
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  - lr_scheduler_type: constant
  - num_epochs: 30
  
  ### Training results
  
  | Training Loss | Epoch | Step  | Validation Loss | Dob Key Precision | Dob Key Recall | Dob Key F1 | Dob Key Number | Dob Value Precision | Dob Value Recall | Dob Value F1 | Dob Value Number | Doctor Name Key Precision | Doctor Name Key Recall | Doctor Name Key F1 | Doctor Name Key Number | Doctor Name Value Precision | Doctor Name Value Recall | Doctor Name Value F1 | Doctor Name Value Number | Patient Name Key Precision | Patient Name Key Recall | Patient Name Key F1 | Patient Name Key Number | Patient Name Value Precision | Patient Name Value Recall | Patient Name Value F1 | Patient Name Value Number | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
  |:-------------:|:-----:|:-----:|:---------------:|:-----------------:|:--------------:|:----------:|:--------------:|:-------------------:|:----------------:|:------------:|:----------------:|:-------------------------:|:----------------------:|:------------------:|:----------------------:|:---------------------------:|:------------------------:|:--------------------:|:------------------------:|:--------------------------:|:-----------------------:|:-------------------:|:-----------------------:|:----------------------------:|:-------------------------:|:---------------------:|:-------------------------:|:-----------------:|:--------------:|:----------:|:----------------:|
  | 0.5034        | 1.0   | 796   | 0.0841          | 0.7143            | 0.7480         | 0.7308     | 127            | 0.7881              | 0.9225           | 0.85         | 129              | 0.0                       | 0.0                    | 0.0                | 67                     | 0.0                         | 0.0                      | 0.0                  | 70                       | 0.5988                     | 0.7143                  | 0.6515              | 140                     | 0.4908                       | 0.9236                    | 0.6410                | 144                       | 0.5944            | 0.6603         | 0.6256     | 0.9887           |
  | 0.0579        | 2.0   | 1592  | 0.0365          | 0.7231            | 0.7402         | 0.7315     | 127            | 0.9766              | 0.9690           | 0.9728       | 129              | 0.6462                    | 0.6269                 | 0.6364             | 67                     | 0.9296                      | 0.9429                   | 0.9362               | 70                       | 0.7103                     | 0.7357                  | 0.7228              | 140                     | 0.9392                       | 0.9653                    | 0.9521                | 144                       | 0.8282            | 0.8405         | 0.8343     | 0.9954           |
  | 0.0317        | 3.0   | 2388  | 0.0297          | 0.7578            | 0.7638         | 0.7608     | 127            | 0.9767              | 0.9767           | 0.9767       | 129              | 0.7077                    | 0.6866                 | 0.6970             | 67                     | 0.8676                      | 0.8429                   | 0.8551               | 70         