aiface commited on
Commit
cbdd280
·
verified ·
1 Parent(s): 43661c4

Model save

Browse files
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: agpl-3.0
4
+ base_model: vinai/phobert-base-v2
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: phobert-v2-3class_v1
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # phobert-v2-3class_v1
18
+
19
+ This model is a fine-tuned version of [vinai/phobert-base-v2](https://huggingface.co/vinai/phobert-base-v2) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.2110
22
+ - Accuracy: 0.9526
23
+ - Precision Macro: 0.8907
24
+ - Recall Macro: 0.8637
25
+ - F1 Macro: 0.8762
26
+ - F1 Weighted: 0.9519
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 2e-05
46
+ - train_batch_size: 64
47
+ - eval_batch_size: 64
48
+ - seed: 42
49
+ - gradient_accumulation_steps: 2
50
+ - total_train_batch_size: 128
51
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: linear
53
+ - num_epochs: 10
54
+ - mixed_precision_training: Native AMP
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision Macro | Recall Macro | F1 Macro | F1 Weighted |
59
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------------:|:------------:|:--------:|:-----------:|
60
+ | 0.5276 | 1.0 | 90 | 0.2313 | 0.9330 | 0.9562 | 0.7135 | 0.7472 | 0.9219 |
61
+ | 0.2071 | 2.0 | 180 | 0.1934 | 0.9488 | 0.8663 | 0.8697 | 0.8679 | 0.9489 |
62
+ | 0.1535 | 3.0 | 270 | 0.1780 | 0.9520 | 0.8910 | 0.8427 | 0.8634 | 0.9505 |
63
+ | 0.133 | 4.0 | 360 | 0.1885 | 0.9507 | 0.9063 | 0.8376 | 0.8654 | 0.9488 |
64
+ | 0.1051 | 5.0 | 450 | 0.1948 | 0.9488 | 0.8749 | 0.8611 | 0.8677 | 0.9484 |
65
+ | 0.1016 | 6.0 | 540 | 0.2034 | 0.9520 | 0.9061 | 0.8509 | 0.8743 | 0.9506 |
66
+ | 0.0805 | 7.0 | 630 | 0.2120 | 0.9501 | 0.8674 | 0.8700 | 0.8687 | 0.9502 |
67
+ | 0.074 | 8.0 | 720 | 0.2037 | 0.9564 | 0.9200 | 0.8625 | 0.8869 | 0.9551 |
68
+ | 0.0616 | 9.0 | 810 | 0.2101 | 0.9526 | 0.8907 | 0.8637 | 0.8762 | 0.9519 |
69
+ | 0.0612 | 10.0 | 900 | 0.2110 | 0.9526 | 0.8907 | 0.8637 | 0.8762 | 0.9519 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 4.55.0
75
+ - Pytorch 2.7.0+cu126
76
+ - Datasets 4.0.0
77
+ - Tokenizers 0.21.4
classification_report_test.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ precision recall f1-score support
2
+
3
+ negative 0.95 0.97 0.96 1409
4
+ neutral 0.75 0.47 0.58 167
5
+ positive 0.95 0.97 0.96 1590
6
+
7
+ accuracy 0.94 3166
8
+ macro avg 0.88 0.80 0.83 3166
9
+ weighted avg 0.94 0.94 0.94 3166
10
+
11
+ Confusion matrix:
12
+ [[1370 15 24]
13
+ [ 32 79 56]
14
+ [ 43 11 1536]]
confusion_matrix_test.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ ,negative,neutral,positive
2
+ negative,1370,15,24
3
+ neutral,32,79,56
4
+ positive,43,11,1536
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3766bf4509f42cf6096b4183e30f35c1ee48ba17a729242c5d624832ba99e787
3
  size 540026460
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d58ef1cdeeebda028331112b6be6c8d0ff714fa9c510e8eb74452274e8e3b00
3
  size 540026460