CoolFace
Modelpublic

xshubhamx/legal-bert-base-uncased

sourceHugging Facecc-by-sa-4.0updated 2y agoView on Hugging Face
0likes35downloads
Model Card

<!-- 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. -->

legal-bert-base-uncased

This model is a fine-tuned version of nlpaueb/legal-bert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:

  • —Loss: 1.1536
  • —Accuracy: 0.8203
  • —Precision: 0.8212
  • —Recall: 0.8203
  • —Precision Macro: 0.7660
  • —Recall Macro: 0.7548
  • —Macro Fpr: 0.0156
  • —Weighted Fpr: 0.0150
  • —Weighted Specificity: 0.9766
  • —Macro Specificity: 0.9867
  • —Weighted Sensitivity: 0.8242
  • —Macro Sensitivity: 0.7548
  • —F1 Micro: 0.8242
  • —F1 Macro: 0.7566
  • —F1 Weighted: 0.8221

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: 5e-05
  • —trainbatchsize: 8
  • —evalbatchsize: 8
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —num_epochs: 15
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracyPrecisionRecallPrecision MacroRecall MacroMacro FprWeighted FprWeighted SpecificityMacro SpecificityWeighted SensitivityMacro SensitivityF1 MicroF1 MacroF1 Weighted
1.10961.06430.67480.79780.78550.79780.62390.63400.01880.01780.97020.98450.79780.63400.79780.61340.7840
0.61872.012860.64490.81100.81960.81100.78060.73270.01690.01640.97550.98580.81100.73270.81100.72680.8090
0.47473.019290.81510.81490.81920.81490.76590.73900.01660.01600.97610.98610.81490.73900.81490.73700.8125
0.26454.025720.93450.82180.81980.82180.74460.74130.01580.01520.97740.98660.82180.74130.82180.73850.8189
0.19015.032151.09290.81950.82420.81950.82640.74320.01610.01550.97500.98630.81950.74320.81950.75950.8166
0.11316.038581.15360.82030.82120.82030.79680.77860.01590.01540.97660.98650.82030.77860.82030.78400.8197
0.0637.045011.32180.81180.81840.81180.75180.75260.01660.01630.97730.98590.81180.75260.81180.74950.8136
0.02648.051441.38630.82570.82620.82570.77840.77680.01550.01490.97680.98680.82570.77680.82570.77300.8247
0.039.057871.55420.80790.81670.80790.76390.76530.01720.01670.97440.98550.80790.76530.80790.75950.8096
0.014910.064301.58350.81410.81550.81410.75450.73610.01680.01600.97300.98580.81410.73610.81410.74120.8127
0.00511.070731.53250.82420.82500.82420.78050.78120.01560.01500.97580.98670.82420.78120.82420.76810.8226
0.00312.077161.57140.82880.82990.82880.77010.76790.01520.01450.97650.98700.82880.76790.82880.76260.8276
0.003313.083591.55110.82490.82190.82490.76760.75980.01560.01490.97600.98670.82490.75980.82490.76080.8225
0.001814.090021.55100.82490.82250.82490.76860.75540.01550.01490.97670.98680.82490.75540.82490.75720.8224
0.000815.096451.54690.82420.82200.82420.76600.75480.01560.01500.97660.98670.82420.75480.82420.75660.8221

Framework versions

  • —Transformers 4.38.2
  • —Pytorch 2.1.2
  • —Datasets 2.1.0
  • —Tokenizers 0.15.2