CoolFace
Modelpublic

z-dickson/CAP_coded_UK_statutory_instruments

sourceHugging Faceupdated 4y agoView on Hugging Face
1likes82downloads
Model Card

CAPcodedUKstatutoryinstruments

This model predicts the CAP code of parliamentary bills/instruments (https://www.comparativeagendas.net/pages/master-codebook)

The model is trained on ~40k UK Parliamentary Statutory Instruments from the UK House of Commons and the Scottish Parliament. The model is cased (case sensitive)

Any questions on the model and training data feel free to message me on twitter - @sachary_

  • Train Loss: 0.1188
  • Train Sparse Categorical Accuracy: 0.9688
  • Validation Loss: 0.2032
  • Validation Sparse Categorical Accuracy: 0.9556

The following hyperparameters were used during training:

  • optimizer: {'name': 'Adam', 'learningrate': 5e-05, 'decay': 0.0, 'beta1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
  • training_precision: float32

Training results

Train LossTrain Sparse Categorical AccuracyValidation LossValidation Sparse Categorical AccuracyEpoch
0.21670.94740.23510.94440
0.15390.95920.20760.95361
0.11880.96880.20320.95562

Framework versions

  • Transformers 4.19.2
  • TensorFlow 2.8.2
  • Datasets 2.2.2
  • Tokenizers 0.12.1