Model save
Browse files- README.md +87 -0
- classification_report_test.txt +14 -0
- confusion_matrix_test.csv +4 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_v2
|
| 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_v2
|
| 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.3130
|
| 22 |
+
- Accuracy: 0.9507
|
| 23 |
+
- Precision Macro: 0.8904
|
| 24 |
+
- Recall Macro: 0.8541
|
| 25 |
+
- F1 Macro: 0.8704
|
| 26 |
+
- F1 Weighted: 0.9497
|
| 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: 3e-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: 20
|
| 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.4636 | 1.0 | 90 | 0.2180 | 0.9419 | 0.9099 | 0.7652 | 0.8049 | 0.9359 |
|
| 61 |
+
| 0.1882 | 2.0 | 180 | 0.1916 | 0.9419 | 0.8351 | 0.8649 | 0.8485 | 0.9433 |
|
| 62 |
+
| 0.1453 | 3.0 | 270 | 0.1898 | 0.9488 | 0.8743 | 0.8402 | 0.8555 | 0.9476 |
|
| 63 |
+
| 0.1175 | 4.0 | 360 | 0.1932 | 0.9526 | 0.9141 | 0.8267 | 0.8597 | 0.9500 |
|
| 64 |
+
| 0.0856 | 5.0 | 450 | 0.2092 | 0.9514 | 0.8708 | 0.8711 | 0.8709 | 0.9514 |
|
| 65 |
+
| 0.0826 | 6.0 | 540 | 0.2221 | 0.9526 | 0.9063 | 0.8516 | 0.8748 | 0.9512 |
|
| 66 |
+
| 0.0675 | 7.0 | 630 | 0.2342 | 0.9438 | 0.8419 | 0.8696 | 0.8545 | 0.9450 |
|
| 67 |
+
| 0.0618 | 8.0 | 720 | 0.2402 | 0.9469 | 0.8890 | 0.8430 | 0.8630 | 0.9456 |
|
| 68 |
+
| 0.0426 | 9.0 | 810 | 0.2503 | 0.9507 | 0.8797 | 0.8543 | 0.8660 | 0.9499 |
|
| 69 |
+
| 0.038 | 10.0 | 900 | 0.2786 | 0.9514 | 0.8999 | 0.8467 | 0.8692 | 0.9499 |
|
| 70 |
+
| 0.039 | 11.0 | 990 | 0.2795 | 0.9463 | 0.8628 | 0.8554 | 0.8589 | 0.9460 |
|
| 71 |
+
| 0.0263 | 12.0 | 1080 | 0.2817 | 0.9488 | 0.8733 | 0.8571 | 0.8648 | 0.9483 |
|
| 72 |
+
| 0.0209 | 13.0 | 1170 | 0.2840 | 0.9495 | 0.8802 | 0.8576 | 0.8681 | 0.9488 |
|
| 73 |
+
| 0.0221 | 14.0 | 1260 | 0.2769 | 0.9526 | 0.8904 | 0.8639 | 0.8761 | 0.9519 |
|
| 74 |
+
| 0.0172 | 15.0 | 1350 | 0.2861 | 0.9514 | 0.8985 | 0.8546 | 0.8739 | 0.9502 |
|
| 75 |
+
| 0.0159 | 16.0 | 1440 | 0.3031 | 0.9482 | 0.8850 | 0.8523 | 0.8671 | 0.9472 |
|
| 76 |
+
| 0.0124 | 17.0 | 1530 | 0.3119 | 0.9501 | 0.8792 | 0.8538 | 0.8655 | 0.9493 |
|
| 77 |
+
| 0.0107 | 18.0 | 1620 | 0.3173 | 0.9476 | 0.8948 | 0.8476 | 0.8681 | 0.9463 |
|
| 78 |
+
| 0.0106 | 19.0 | 1710 | 0.3094 | 0.9545 | 0.8979 | 0.8611 | 0.8776 | 0.9535 |
|
| 79 |
+
| 0.0108 | 20.0 | 1800 | 0.3130 | 0.9507 | 0.8904 | 0.8541 | 0.8704 | 0.9497 |
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
### Framework versions
|
| 83 |
+
|
| 84 |
+
- Transformers 4.55.0
|
| 85 |
+
- Pytorch 2.7.0+cu126
|
| 86 |
+
- Datasets 4.0.0
|
| 87 |
+
- Tokenizers 0.21.4
|
classification_report_test.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
precision recall f1-score support
|
| 2 |
+
|
| 3 |
+
negative 0.94 0.96 0.95 1409
|
| 4 |
+
neutral 0.70 0.50 0.58 167
|
| 5 |
+
positive 0.95 0.96 0.96 1590
|
| 6 |
+
|
| 7 |
+
accuracy 0.94 3166
|
| 8 |
+
macro avg 0.86 0.81 0.83 3166
|
| 9 |
+
weighted avg 0.93 0.94 0.94 3166
|
| 10 |
+
|
| 11 |
+
Confusion matrix:
|
| 12 |
+
[[1359 21 29]
|
| 13 |
+
[ 34 83 50]
|
| 14 |
+
[ 47 15 1528]]
|
confusion_matrix_test.csv
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,negative,neutral,positive
|
| 2 |
+
negative,1359,21,29
|
| 3 |
+
neutral,34,83,50
|
| 4 |
+
positive,47,15,1528
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 540026460
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4f7579e24950f4a1531c526198e0b2bfcd2ba8aac49207aae5ac1d7b673ccee
|
| 3 |
size 540026460
|