MaxT commited on
Commit
9d45852
1 Parent(s): 9c03abc

Model save

Browse files
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: roberta-base
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - poem_sentiment
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: poem_sentiment
12
+ results:
13
+ - task:
14
+ name: Text Classification
15
+ type: text-classification
16
+ dataset:
17
+ name: poem_sentiment
18
+ type: poem_sentiment
19
+ config: default
20
+ split: validation
21
+ args: default
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.8857142857142857
26
+ ---
27
+
28
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
+ should probably proofread and complete it, then remove this comment. -->
30
+
31
+ # poem_sentiment
32
+
33
+ This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on the poem_sentiment dataset.
34
+ It achieves the following results on the evaluation set:
35
+ - Loss: 0.4747
36
+ - 0: {'precision': 0.8571428571428571, 'recall': 0.9473684210526315, 'f1-score': 0.9, 'support': 19}
37
+ - 1: {'precision': 0.7222222222222222, 'recall': 0.7647058823529411, 'f1-score': 0.7428571428571428, 'support': 17}
38
+ - 2: {'precision': 0.9393939393939394, 'recall': 0.8985507246376812, 'f1-score': 0.9185185185185185, 'support': 69}
39
+ - Accuracy: 0.8857
40
+ - Macro avg: {'precision': 0.8395863395863395, 'recall': 0.8702083426810846, 'f1-score': 0.8537918871252205, 'support': 105}
41
+ - Weighted avg: {'precision': 0.8893492750635609, 'recall': 0.8857142857142857, 'f1-score': 0.8867271352985638, 'support': 105}
42
+
43
+ ## Model description
44
+
45
+ More information needed
46
+
47
+ ## Intended uses & limitations
48
+
49
+ More information needed
50
+
51
+ ## Training and evaluation data
52
+
53
+ More information needed
54
+
55
+ ## Training procedure
56
+
57
+ ### Training hyperparameters
58
+
59
+ The following hyperparameters were used during training:
60
+ - learning_rate: 5e-05
61
+ - train_batch_size: 8
62
+ - eval_batch_size: 8
63
+ - seed: 42
64
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
65
+ - lr_scheduler_type: linear
66
+ - lr_scheduler_warmup_steps: 500
67
+ - num_epochs: 5
68
+
69
+ ### Training results
70
+
71
+ | Training Loss | Epoch | Step | Validation Loss | 0 | 1 | 2 | Accuracy | Macro avg | Weighted avg |
72
+ |:-------------:|:-----:|:----:|:---------------:|:--------------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------:|:--------:|:-----------------------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------------------:|
73
+ | 1.0922 | 1.0 | 112 | 0.8825 | {'precision': 0.0, 'recall': 0.0, 'f1-score': 0.0, 'support': 19} | {'precision': 0.0, 'recall': 0.0, 'f1-score': 0.0, 'support': 17} | {'precision': 0.6571428571428571, 'recall': 1.0, 'f1-score': 0.7931034482758621, 'support': 69} | 0.6571 | {'precision': 0.21904761904761905, 'recall': 0.3333333333333333, 'f1-score': 0.26436781609195403, 'support': 105} | {'precision': 0.43183673469387757, 'recall': 0.6571428571428571, 'f1-score': 0.5211822660098522, 'support': 105} |
74
+ | 0.6877 | 2.0 | 224 | 0.4747 | {'precision': 0.8571428571428571, 'recall': 0.9473684210526315, 'f1-score': 0.9, 'support': 19} | {'precision': 0.7222222222222222, 'recall': 0.7647058823529411, 'f1-score': 0.7428571428571428, 'support': 17} | {'precision': 0.9393939393939394, 'recall': 0.8985507246376812, 'f1-score': 0.9185185185185185, 'support': 69} | 0.8857 | {'precision': 0.8395863395863395, 'recall': 0.8702083426810846, 'f1-score': 0.8537918871252205, 'support': 105} | {'precision': 0.8893492750635609, 'recall': 0.8857142857142857, 'f1-score': 0.8867271352985638, 'support': 105} |
75
+ | 0.5299 | 3.0 | 336 | 0.6595 | {'precision': 0.8, 'recall': 0.8421052631578947, 'f1-score': 0.8205128205128205, 'support': 19} | {'precision': 1.0, 'recall': 0.4117647058823529, 'f1-score': 0.5833333333333334, 'support': 17} | {'precision': 0.8461538461538461, 'recall': 0.9565217391304348, 'f1-score': 0.8979591836734695, 'support': 69} | 0.8476 | {'precision': 0.882051282051282, 'recall': 0.7367972360568942, 'f1-score': 0.7672684458398744, 'support': 105} | {'precision': 0.8627106227106227, 'recall': 0.8476190476190476, 'f1-score': 0.8330056564750442, 'support': 105} |
76
+ | 0.9027 | 4.0 | 448 | 0.5981 | {'precision': 1.0, 'recall': 0.7368421052631579, 'f1-score': 0.8484848484848484, 'support': 19} | {'precision': 0.7333333333333333, 'recall': 0.6470588235294118, 'f1-score': 0.6875, 'support': 17} | {'precision': 0.868421052631579, 'recall': 0.9565217391304348, 'f1-score': 0.9103448275862069, 'support': 69} | 0.8667 | {'precision': 0.867251461988304, 'recall': 0.7801408893076681, 'f1-score': 0.8154432253570185, 'support': 105} | {'precision': 0.870359231411863, 'recall': 0.8666666666666667, 'f1-score': 0.863071478330099, 'support': 105} |
77
+ | 0.4588 | 5.0 | 560 | 0.7815 | {'precision': 0.7727272727272727, 'recall': 0.8947368421052632, 'f1-score': 0.8292682926829269, 'support': 19} | {'precision': 0.6470588235294118, 'recall': 0.6470588235294118, 'f1-score': 0.6470588235294118, 'support': 17} | {'precision': 0.8939393939393939, 'recall': 0.855072463768116, 'f1-score': 0.8740740740740741, 'support': 69} | 0.8286 | {'precision': 0.7712418300653595, 'recall': 0.7989560431342637, 'f1-score': 0.7834670634288043, 'support': 105} | {'precision': 0.832034632034632, 'recall': 0.8285714285714286, 'f1-score': 0.8292115111627308, 'support': 105} |
78
+
79
+
80
+ ### Framework versions
81
+
82
+ - Transformers 4.35.2
83
+ - Pytorch 2.1.0+cu118
84
+ - Datasets 2.15.0
85
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "roberta-base",
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
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "negative",
15
+ "1": "positive",
16
+ "2": "no_impact",
17
+ "3": "mixed"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "layer_norm_eps": 1e-05,
22
+ "max_position_embeddings": 514,
23
+ "model_type": "roberta",
24
+ "num_attention_heads": 12,
25
+ "num_hidden_layers": 12,
26
+ "pad_token_id": 1,
27
+ "position_embedding_type": "absolute",
28
+ "problem_type": "single_label_classification",
29
+ "torch_dtype": "float32",
30
+ "transformers_version": "4.35.2",
31
+ "type_vocab_size": 1,
32
+ "use_cache": true,
33
+ "vocab_size": 50265
34
+ }
logs/events.out.tfevents.1701265669.64bc1fdc8168.1320.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1fe3f5b3b8085d5ad78edcc7a9c74bb1888d57d23634606833638e8558406d6d
3
+ size 15028
logs/events.out.tfevents.1701265884.64bc1fdc8168.1320.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cafa048d565a2038c7c16f59dd4e33329a38ff244298980fc8ba30c88b418c52
3
+ size 411
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87ba1c1145659d09d2b3770b27ff02ecc0a0f756860463c2b646847611a6ba6c
3
+ size 498618976
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a6982a811e1f012755053cd6ddcf8a75777c73480b45e6ec0b88dfa18774dc1
3
+ size 4600