readme: ---
  license: cc-by-nc-sa-4.0
  tags:
  - generated_from_trainer
  model-index:
  - name: lmv2-g-passport-197-doc-09-13
    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-passport-197-doc-09-13
  
  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.0438
  - Country Code Precision: 0.9412
  - Country Code Recall: 0.9697
  - Country Code F1: 0.9552
  - Country Code Number: 33
  - Date Of Birth Precision: 0.9714
  - Date Of Birth Recall: 1.0
  - Date Of Birth F1: 0.9855
  - Date Of Birth Number: 34
  - Date Of Expiry Precision: 1.0
  - Date Of Expiry Recall: 1.0
  - Date Of Expiry F1: 1.0
  - Date Of Expiry Number: 36
  - Date Of Issue Precision: 1.0
  - Date Of Issue Recall: 1.0
  - Date Of Issue F1: 1.0
  - Date Of Issue Number: 36
  - Given Name Precision: 0.9444
  - Given Name Recall: 1.0
  - Given Name F1: 0.9714
  - Given Name Number: 34
  - Nationality Precision: 0.9714
  - Nationality Recall: 1.0
  - Nationality F1: 0.9855
  - Nationality Number: 34
  - Passport No Precision: 0.9118
  - Passport No Recall: 0.9688
  - Passport No F1: 0.9394
  - Passport No Number: 32
  - Place Of Birth Precision: 1.0
  - Place Of Birth Recall: 0.9730
  - Place Of Birth F1: 0.9863
  - Place Of Birth Number: 37
  - Place Of Issue Precision: 1.0
  - Place Of Issue Recall: 0.9722
  - Place Of Issue F1: 0.9859
  - Place Of Issue Number: 36
  - Sex Precision: 0.9655
  - Sex Recall: 0.9333
  - Sex F1: 0.9492
  - Sex Number: 30
  - Surname Precision: 0.9259
  - Surname Recall: 1.0
  - Surname F1: 0.9615
  - Surname Number: 25
  - Type Precision: 1.0
  - Type Recall: 1.0
  - Type F1: 1.0
  - Type Number: 27
  - Overall Precision: 0.97
  - Overall Recall: 0.9848
  - Overall F1: 0.9773
  - Overall Accuracy: 0.9941
  
  ## 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 | Country Code Precision | Country Code Recall | Country Code F1 | Country Code Number | Date Of Birth Precision | Date Of Birth Recall | Date Of Birth F1 | Date Of Birth Number | Date Of Expiry Precision | Date Of Expiry Recall | Date Of Expiry F1 | Date Of Expiry Number | Date Of Issue Precision | Date Of Issue Recall | Date Of Issue F1 | Date Of Issue Number | Given Name Precision | Given Name Recall | Given Name F1 | Given Name Number | Nationality Precision | Nationality Recall | Nationality F1 | Nationality Number | Passport No Precision | Passport No Recall | Passport No F1 | Passport No Number | Place Of Birth Precision | Place Of Birth Recall | Place Of Birth F1 | Place Of Birth Number | Place Of Issue Precision | Place Of Issue Recall | Place Of Issue F1 | Place Of Issue Number | Sex Precision | Sex Recall | Sex F1 | Sex Number | Surname Precision | Surname Recall | Surname F1 | Surname Number | Type Precision | Type Recall | Type F1 | Type Number | Overall Precision | Overall Recall | Overall F1 | Overall Accuracy |
  |:-------------:|:-----:|:----:|:---------------:|:----------------------:|:-------------------:|:---------------:|:-------------------:|:-----------------------:|:--------------------:|:----------------:|:--------------------:|:------------------------:|:---------------------:|:-----------------:|:---------------------:|:-----------------------:|:--------------------:|:----------------:|:--------------------:|:--------------------:|:-----------------:|:-------------:|:-----------------:|:---------------------:|:------------------:|:--------------:|:------------------:|:---------------------:|:------------------:|:--------------:|:------------------:|:------------------------:|:---------------------:|:-----------------:|:---------------------:|:------------------------:|:---------------------:|:-----------------:|:---------------------:|:-------------:|:----------:|:------:|:----------:|:-----------------:|:--------------:|:----------:|:--------------:|:--------------:|:-----------:|:-------:|:-----------:|:-----------------:|:--------------:|:----------:|:----------------:|
  | 1.6757        | 1.0   | 157  | 1.2569          | 0.0                    | 0.0                 | 0.0             | 33                  | 0.0                     | 0.0                  | 0.0              | 34                   | 0.2466                   | 1.0                   | 0.3956            | 36                    | 0.0                     | 0.0                  | 0.0              | 36     