CoolFace
Modelpublic

m-newhauser/distilbert-political-tweets

sourceHugging Facelgpl-3.0updated 4y agoView on Hugging Face
27likes65downloads
Model Card

distilbert-political-tweets πŸ—£ πŸ‡ΊπŸ‡Έ

This model is a fine-tuned version of distilbert-base-uncased on the m-newhauser/senator-tweets dataset, which contains all tweets made by United States senators during the first year of the Biden Administration. It achieves the following results on the evaluation set:

  • β€”Accuracy: 0.9076
  • β€”F1: 0.9117

Model description

The goal of this model is to classify short pieces of text as having either Democratic or Republican sentiment. The model was fine-tuned on 99,693 tweets (51.6% Democrat, 48.4% Republican) made by US senators in 2021.

Model accuracy may not hold up on pieces of text longer than a tweet.

Training hyperparameters

The following hyperparameters were used during training:

  • β€”optimizer: Adam
  • β€”training_precision: float32
  • β€”learning_rate = 5e-5
  • β€”num_epochs = 5

Framework versions

  • β€”Transformers 4.16.2
  • β€”TensorFlow 2.8.0
  • β€”Datasets 1.18.3
  • β€”Tokenizers 0.11.6