CoolFace
Modelpublic

cvnberk/crypto_sentiment

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
4likes23downloads
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. -->

crypto_sentiment

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

  • Loss: 0.4542
  • Accuracy: 0.7151
  • F1: 0.7213

Model description

The ckandemir/bitcoin_tweets_sentiment_kaggle is a sentiment analysis classifier fine-tuned on Bitcoin-related tweets. By leveraging bert-base-uncased model, it has been trained to classify tweets into various sentiment categories based on the content related to Bitcoin. This model is capable of understanding the nuances in the text of tweets and provides a sentiment score which can be leveraged for various analyses including market sentiment analysis, social media monitoring, and other applications where understanding public opinion regarding Bitcoin is crucial.

Intended uses

This model is intended to be used for sentiment analysis on Bitcoin-related text data, particularly tweets. It can be utilized by researchers, analysts, and developers who are interested in gauging public sentiment regarding Bitcoin on social media.

Limitations

  • The model may not perform well on text data that is significantly different in context or structure from the training data (Bitcoin-related tweets).
  • The model might not capture sentiment accurately for tweets with nuanced or sarcastic tones.

Training and evaluation data

The model was trained and evaluated on the ckandemir/bitcoin_tweets_sentiment_kaggle dataset. This dataset comprises tweets related to Bitcoin, labeled with sentiment scores.

Data Preparation

  • The initial dataset contained tweets in multiple languages. As part of the data preparation, only English tweets were extracted to ensure language consistency for model training. The following steps were performed for data preparation:
  • Language Detection: Identified and extracted only the tweets that were in English.
  • Data Cleaning: Removal of special characters.

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 5e-06
  • trainbatchsize: 24
  • evalbatchsize: 24
  • seed: 42
  • gradientaccumulationsteps: 3
  • totaltrainbatch_size: 72
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: cosinewithrestarts
  • lrschedulerwarmup_steps: 1000
  • training_steps: 1000
  • mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracyF1
0.89410.65500.87330.56980.5654
0.85651.31000.80420.66900.6031
0.78961.961500.72190.68020.5740
0.71742.612000.63790.75140.6955
0.6333.262500.57450.75140.6930
0.58243.913000.53030.750.6919
0.53654.573500.49970.75140.7014
0.50895.224000.47660.74580.6991
0.48935.874500.45960.74860.7174
0.4636.525000.44460.75140.7127
0.44967.175500.44070.71650.7048
0.43577.836000.43640.72770.7246
0.42578.486500.43240.70670.7115
0.40299.137000.43140.72770.7180
0.39559.787500.43540.71510.7164
0.388610.438000.43960.72210.7244
0.378811.098500.43630.72350.7194
0.36611.749000.45280.71790.7215
0.329812.399500.47660.70530.7107
0.342313.0410000.45420.71510.7213

Framework versions

  • Transformers 4.35.0
  • Pytorch 2.1.0+cu118
  • Datasets 2.14.6
  • Tokenizers 0.14.1