Akirami commited on
Commit
c4e801a
1 Parent(s): 12496be

Akirami/twitter-roberta-sentiment-analysis

Browse files
Files changed (4) hide show
  1. README.md +64 -0
  2. config.json +38 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: cardiffnlp/twitter-roberta-base-sentiment-latest
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: twitter-roberta-sentiment-analysiss-lr-1e-5
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # twitter-roberta-sentiment-analysiss-lr-1e-5
17
+
18
+ This model is a fine-tuned version of [cardiffnlp/twitter-roberta-base-sentiment-latest](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.5804
21
+ - Balanced Accuracy: 0.6492
22
+ - Accuracy: 0.6649
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 1e-05
42
+ - train_batch_size: 32
43
+ - eval_batch_size: 32
44
+ - seed: 42
45
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
46
+ - lr_scheduler_type: linear
47
+ - num_epochs: 5
48
+ - mixed_precision_training: Native AMP
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | Balanced Accuracy | Accuracy |
53
+ |:-------------:|:------:|:----:|:---------------:|:-----------------:|:--------:|
54
+ | 0.4577 | 1.3889 | 200 | 0.4800 | 0.6217 | 0.5382 |
55
+ | 0.3676 | 2.7778 | 400 | 0.4861 | 0.6472 | 0.6059 |
56
+ | 0.3078 | 4.1667 | 600 | 0.5804 | 0.6492 | 0.6649 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.46.2
62
+ - Pytorch 2.5.0+cu121
63
+ - Datasets 3.1.0
64
+ - Tokenizers 0.20.3
config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "cardiffnlp/twitter-roberta-base-sentiment-latest",
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "Negative emotion",
16
+ "1": "No emotion toward brand or product",
17
+ "2": "Positive emotion"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "Negative emotion": 0,
23
+ "No emotion toward brand or product": 1,
24
+ "Positive emotion": 2
25
+ },
26
+ "layer_norm_eps": 1e-05,
27
+ "max_position_embeddings": 514,
28
+ "model_type": "roberta",
29
+ "num_attention_heads": 12,
30
+ "num_hidden_layers": 12,
31
+ "pad_token_id": 1,
32
+ "position_embedding_type": "absolute",
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.46.2",
35
+ "type_vocab_size": 1,
36
+ "use_cache": true,
37
+ "vocab_size": 50265
38
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:254f27c2739ee379ab9a985828f551e66dee89fe08235511e9d79f765373d6b8
3
+ size 498615900
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78f2dd9fdd207bf82f4746a144b930c4477f2e99acbdc6e52d4d738a3dcf9b9e
3
+ size 5304