alperengozeten
commited on
Commit
•
f481b96
1
Parent(s):
5406272
alperengozeten/turkish-emotion-model
Browse files- README.md +81 -0
- config.json +44 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: dbmdz/bert-base-turkish-cased
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: results
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# results
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [dbmdz/bert-base-turkish-cased](https://huggingface.co/dbmdz/bert-base-turkish-cased) on the None dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.1455
|
21 |
+
- Accuracy: 0.9716
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 5e-05
|
41 |
+
- train_batch_size: 16
|
42 |
+
- eval_batch_size: 8
|
43 |
+
- seed: 42
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- lr_scheduler_warmup_steps: 500
|
47 |
+
- num_epochs: 3
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
52 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
53 |
+
| 1.6937 | 0.14 | 200 | 0.5659 | 0.8653 |
|
54 |
+
| 0.3263 | 0.27 | 400 | 0.2603 | 0.9248 |
|
55 |
+
| 0.2423 | 0.41 | 600 | 0.2538 | 0.9323 |
|
56 |
+
| 0.2036 | 0.55 | 800 | 0.2016 | 0.9495 |
|
57 |
+
| 0.1961 | 0.69 | 1000 | 0.1868 | 0.9519 |
|
58 |
+
| 0.1837 | 0.82 | 1200 | 0.1819 | 0.9537 |
|
59 |
+
| 0.2017 | 0.96 | 1400 | 0.1481 | 0.9626 |
|
60 |
+
| 0.1337 | 1.1 | 1600 | 0.1735 | 0.9597 |
|
61 |
+
| 0.097 | 1.23 | 1800 | 0.1684 | 0.9616 |
|
62 |
+
| 0.1059 | 1.37 | 2000 | 0.1545 | 0.9614 |
|
63 |
+
| 0.0968 | 1.51 | 2200 | 0.1436 | 0.9657 |
|
64 |
+
| 0.1147 | 1.64 | 2400 | 0.1401 | 0.9638 |
|
65 |
+
| 0.082 | 1.78 | 2600 | 0.1389 | 0.9673 |
|
66 |
+
| 0.078 | 1.92 | 2800 | 0.1233 | 0.9719 |
|
67 |
+
| 0.0668 | 2.06 | 3000 | 0.1373 | 0.9690 |
|
68 |
+
| 0.0279 | 2.19 | 3200 | 0.1512 | 0.9702 |
|
69 |
+
| 0.0331 | 2.33 | 3400 | 0.1353 | 0.9738 |
|
70 |
+
| 0.0276 | 2.47 | 3600 | 0.1404 | 0.9733 |
|
71 |
+
| 0.0339 | 2.6 | 3800 | 0.1527 | 0.9719 |
|
72 |
+
| 0.031 | 2.74 | 4000 | 0.1483 | 0.9710 |
|
73 |
+
| 0.0224 | 2.88 | 4200 | 0.1455 | 0.9716 |
|
74 |
+
|
75 |
+
|
76 |
+
### Framework versions
|
77 |
+
|
78 |
+
- Transformers 4.35.0
|
79 |
+
- Pytorch 2.1.0+cu118
|
80 |
+
- Datasets 2.14.6
|
81 |
+
- Tokenizers 0.14.1
|
config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dbmdz/bert-base-turkish-cased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "LABEL_0",
|
13 |
+
"1": "LABEL_1",
|
14 |
+
"2": "LABEL_2",
|
15 |
+
"3": "LABEL_3",
|
16 |
+
"4": "LABEL_4",
|
17 |
+
"5": "LABEL_5",
|
18 |
+
"6": "LABEL_6"
|
19 |
+
},
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"intermediate_size": 3072,
|
22 |
+
"label2id": {
|
23 |
+
"LABEL_0": 0,
|
24 |
+
"LABEL_1": 1,
|
25 |
+
"LABEL_2": 2,
|
26 |
+
"LABEL_3": 3,
|
27 |
+
"LABEL_4": 4,
|
28 |
+
"LABEL_5": 5,
|
29 |
+
"LABEL_6": 6
|
30 |
+
},
|
31 |
+
"layer_norm_eps": 1e-12,
|
32 |
+
"max_position_embeddings": 512,
|
33 |
+
"model_type": "bert",
|
34 |
+
"num_attention_heads": 12,
|
35 |
+
"num_hidden_layers": 12,
|
36 |
+
"pad_token_id": 0,
|
37 |
+
"position_embedding_type": "absolute",
|
38 |
+
"problem_type": "single_label_classification",
|
39 |
+
"torch_dtype": "float32",
|
40 |
+
"transformers_version": "4.35.0",
|
41 |
+
"type_vocab_size": 2,
|
42 |
+
"use_cache": true,
|
43 |
+
"vocab_size": 32000
|
44 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3d42492d6dc613c7adc9c063de0352d7ccfa4484c8be93ba8759b5c8309a7702
|
3 |
+
size 442514444
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1bd199cd7372100973ef0823c305c89acfcdc364c0d2d5149c0800ac893d77d2
|
3 |
+
size 4536
|