CoolFace
Modelpublic

easwar03/legal-bert-sentiment-small-10000

sourceHugging Facecc-by-sa-4.0updated 2y agoView on Hugging Face
0likes5downloads
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-sentiment-small-10000

This model is a fine-tuned version of nlpaueb/legal-bert-small-uncased on the imdb dataset with 10000 train samples and 1200 test samples.. It achieves the following results on the evaluation set:

  • —Loss: 0.2959
  • —Accuracy: 0.885
  • —F1: 0.8846
  • —Precision: 0.8831
  • —Recall: 0.8861

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

Training results

Training LossEpochStepValidation LossAccuracyF1PrecisionRecall
No log1.03130.33170.86670.87280.83060.9196
0.35542.06260.29590.8850.88460.88310.8861

Framework versions

  • —Transformers 4.45.1
  • —Pytorch 2.4.0
  • —Datasets 3.0.1
  • —Tokenizers 0.20.0