nikitakapitan
commited on
Commit
•
4ebee7c
1
Parent(s):
2cb29da
End of training
Browse files- README.md +84 -0
- pytorch_model.bin +1 -1
README.md
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: bert-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- imdb
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
- f1
|
11 |
+
model-index:
|
12 |
+
- name: bert-base-uncased-finetuned-imdb
|
13 |
+
results:
|
14 |
+
- task:
|
15 |
+
name: Text Classification
|
16 |
+
type: text-classification
|
17 |
+
dataset:
|
18 |
+
name: imdb
|
19 |
+
type: imdb
|
20 |
+
config: plain_text
|
21 |
+
split: test
|
22 |
+
args: plain_text
|
23 |
+
metrics:
|
24 |
+
- name: Accuracy
|
25 |
+
type: accuracy
|
26 |
+
value:
|
27 |
+
accuracy: 0.94124
|
28 |
+
- name: F1
|
29 |
+
type: f1
|
30 |
+
value:
|
31 |
+
f1: 0.9412364248240864
|
32 |
+
---
|
33 |
+
|
34 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
35 |
+
should probably proofread and complete it, then remove this comment. -->
|
36 |
+
|
37 |
+
# bert-base-uncased-finetuned-imdb
|
38 |
+
|
39 |
+
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the imdb dataset.
|
40 |
+
It achieves the following results on the evaluation set:
|
41 |
+
- Loss: 0.2708
|
42 |
+
- Accuracy: {'accuracy': 0.94124}
|
43 |
+
- F1: {'f1': 0.9412364248240864}
|
44 |
+
|
45 |
+
## Model description
|
46 |
+
|
47 |
+
More information needed
|
48 |
+
|
49 |
+
## Intended uses & limitations
|
50 |
+
|
51 |
+
More information needed
|
52 |
+
|
53 |
+
## Training and evaluation data
|
54 |
+
|
55 |
+
More information needed
|
56 |
+
|
57 |
+
## Training procedure
|
58 |
+
|
59 |
+
### Training hyperparameters
|
60 |
+
|
61 |
+
The following hyperparameters were used during training:
|
62 |
+
- learning_rate: 2e-05
|
63 |
+
- train_batch_size: 16
|
64 |
+
- eval_batch_size: 16
|
65 |
+
- seed: 42
|
66 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
67 |
+
- lr_scheduler_type: linear
|
68 |
+
- num_epochs: 3
|
69 |
+
|
70 |
+
### Training results
|
71 |
+
|
72 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
73 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------------------:|:--------------------------:|
|
74 |
+
| 0.2201 | 1.0 | 1563 | 0.2556 | {'accuracy': 0.91716} | {'f1': 0.9168776701523282} |
|
75 |
+
| 0.1445 | 2.0 | 3126 | 0.2199 | {'accuracy': 0.94092} | {'f1': 0.940911994189728} |
|
76 |
+
| 0.0719 | 3.0 | 4689 | 0.2708 | {'accuracy': 0.94124} | {'f1': 0.9412364248240864} |
|
77 |
+
|
78 |
+
|
79 |
+
### Framework versions
|
80 |
+
|
81 |
+
- Transformers 4.33.1
|
82 |
+
- Pytorch 2.0.1+cu118
|
83 |
+
- Datasets 2.14.5
|
84 |
+
- Tokenizers 0.13.3
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 438003505
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:68558237ee8bf00b6dc722b9c25cb07a9ad724e8dc17740723347fcfa88631a5
|
3 |
size 438003505
|