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: mit
|
| 4 |
+
base_model: vinai/phobert-base
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
model-index:
|
| 10 |
+
- name: phobert-base_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-base_v2
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [vinai/phobert-base](https://huggingface.co/vinai/phobert-base) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.3362
|
| 22 |
+
- Accuracy: 0.9482
|
| 23 |
+
- Precision Macro: 0.8854
|
| 24 |
+
- Recall Macro: 0.8318
|
| 25 |
+
- F1 Macro: 0.8543
|
| 26 |
+
- F1 Weighted: 0.9464
|
| 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.4592 | 1.0 | 90 | 0.2280 | 0.9356 | 0.8885 | 0.7440 | 0.7800 | 0.9283 |
|
| 61 |
+
| 0.1801 | 2.0 | 180 | 0.1823 | 0.9476 | 0.8617 | 0.8443 | 0.8523 | 0.9469 |
|
| 62 |
+
| 0.1221 | 3.0 | 270 | 0.1834 | 0.9482 | 0.8795 | 0.8359 | 0.8548 | 0.9467 |
|
| 63 |
+
| 0.1071 | 4.0 | 360 | 0.1868 | 0.9520 | 0.9086 | 0.8096 | 0.8447 | 0.9486 |
|
| 64 |
+
| 0.0817 | 5.0 | 450 | 0.2031 | 0.9526 | 0.8980 | 0.8393 | 0.8635 | 0.9508 |
|
| 65 |
+
| 0.065 | 6.0 | 540 | 0.2240 | 0.9501 | 0.8908 | 0.8084 | 0.8389 | 0.9469 |
|
| 66 |
+
| 0.0574 | 7.0 | 630 | 0.2219 | 0.9501 | 0.8625 | 0.8701 | 0.8662 | 0.9504 |
|
| 67 |
+
| 0.0481 | 8.0 | 720 | 0.2503 | 0.9469 | 0.8752 | 0.8266 | 0.8472 | 0.9451 |
|
| 68 |
+
| 0.0362 | 9.0 | 810 | 0.2489 | 0.9495 | 0.8822 | 0.8121 | 0.8392 | 0.9466 |
|
| 69 |
+
| 0.0319 | 10.0 | 900 | 0.2584 | 0.9501 | 0.8784 | 0.8413 | 0.8577 | 0.9488 |
|
| 70 |
+
| 0.0263 | 11.0 | 990 | 0.2774 | 0.9488 | 0.8800 | 0.8281 | 0.8498 | 0.9469 |
|
| 71 |
+
| 0.0199 | 12.0 | 1080 | 0.2790 | 0.9501 | 0.8780 | 0.8416 | 0.8577 | 0.9488 |
|
| 72 |
+
| 0.0114 | 13.0 | 1170 | 0.2955 | 0.9476 | 0.8733 | 0.8393 | 0.8546 | 0.9463 |
|
| 73 |
+
| 0.0126 | 14.0 | 1260 | 0.3105 | 0.9501 | 0.8953 | 0.8331 | 0.8586 | 0.9481 |
|
| 74 |
+
| 0.0125 | 15.0 | 1350 | 0.3147 | 0.9482 | 0.8773 | 0.8397 | 0.8564 | 0.9469 |
|
| 75 |
+
| 0.0106 | 16.0 | 1440 | 0.3247 | 0.9469 | 0.8861 | 0.8350 | 0.8567 | 0.9453 |
|
| 76 |
+
| 0.0065 | 17.0 | 1530 | 0.3419 | 0.9476 | 0.8751 | 0.8274 | 0.8476 | 0.9458 |
|
| 77 |
+
| 0.0072 | 18.0 | 1620 | 0.3406 | 0.9469 | 0.8933 | 0.8185 | 0.8475 | 0.9444 |
|
| 78 |
+
| 0.0058 | 19.0 | 1710 | 0.3389 | 0.9495 | 0.8904 | 0.8328 | 0.8566 | 0.9476 |
|
| 79 |
+
| 0.0064 | 20.0 | 1800 | 0.3362 | 0.9482 | 0.8854 | 0.8318 | 0.8543 | 0.9464 |
|
| 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.96 0.96 0.96 1409
|
| 4 |
+
neutral 0.63 0.60 0.62 167
|
| 5 |
+
positive 0.95 0.96 0.96 1590
|
| 6 |
+
|
| 7 |
+
accuracy 0.94 3166
|
| 8 |
+
macro avg 0.85 0.84 0.84 3166
|
| 9 |
+
weighted avg 0.94 0.94 0.94 3166
|
| 10 |
+
|
| 11 |
+
Confusion matrix:
|
| 12 |
+
[[1350 32 27]
|
| 13 |
+
[ 21 101 45]
|
| 14 |
+
[ 39 28 1523]]
|
confusion_matrix_test.csv
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,negative,neutral,positive
|
| 2 |
+
negative,1350,32,27
|
| 3 |
+
neutral,21,101,45
|
| 4 |
+
positive,39,28,1523
|
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:f5d1d77994e235a9fb23b19f9e2dd30236242f08ad0f5e137ff636b6e7bcb22b
|
| 3 |
size 540026460
|