welsachy commited on
Commit
95b1ba3
1 Parent(s): 26bfbe7

End of training

Browse files
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ base_model: mental/mental-bert-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - f1
10
+ - accuracy
11
+ model-index:
12
+ - name: mental-bert-base-uncased-finetuned-depression
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # mental-bert-base-uncased-finetuned-depression
20
+
21
+ This model is a fine-tuned version of [mental/mental-bert-base-uncased](https://huggingface.co/mental/mental-bert-base-uncased) on the None dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.5358
24
+ - Precision: 0.8986
25
+ - Recall: 0.8885
26
+ - F1: 0.8933
27
+ - Accuracy: 0.9158
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 2e-05
47
+ - train_batch_size: 8
48
+ - eval_batch_size: 8
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 20
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
57
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
58
+ | No log | 1.0 | 469 | 0.3929 | 0.8744 | 0.8346 | 0.8516 | 0.8849 |
59
+ | 0.4726 | 2.0 | 938 | 0.4405 | 0.9052 | 0.8359 | 0.8660 | 0.8955 |
60
+ | 0.2165 | 3.0 | 1407 | 0.4594 | 0.8627 | 0.8435 | 0.8515 | 0.8891 |
61
+ | 0.1263 | 4.0 | 1876 | 0.5213 | 0.9012 | 0.8781 | 0.8886 | 0.9094 |
62
+ | 0.0719 | 5.0 | 2345 | 0.4879 | 0.9036 | 0.8694 | 0.8851 | 0.9083 |
63
+ | 0.0471 | 6.0 | 2814 | 0.5628 | 0.9185 | 0.8639 | 0.8880 | 0.9104 |
64
+ | 0.0431 | 7.0 | 3283 | 0.5592 | 0.8980 | 0.8731 | 0.8846 | 0.9104 |
65
+ | 0.0402 | 8.0 | 3752 | 0.5948 | 0.9166 | 0.8591 | 0.8848 | 0.9094 |
66
+ | 0.0348 | 9.0 | 4221 | 0.5358 | 0.8986 | 0.8885 | 0.8933 | 0.9158 |
67
+ | 0.0276 | 10.0 | 4690 | 0.6361 | 0.9116 | 0.8619 | 0.8843 | 0.9094 |
68
+ | 0.0281 | 11.0 | 5159 | 0.6535 | 0.9095 | 0.8726 | 0.8897 | 0.9147 |
69
+ | 0.029 | 12.0 | 5628 | 0.6776 | 0.9098 | 0.8673 | 0.8868 | 0.9136 |
70
+ | 0.0188 | 13.0 | 6097 | 0.6940 | 0.9072 | 0.8629 | 0.8829 | 0.9072 |
71
+ | 0.0215 | 14.0 | 6566 | 0.7022 | 0.9168 | 0.8606 | 0.8856 | 0.9115 |
72
+ | 0.0184 | 15.0 | 7035 | 0.6996 | 0.9027 | 0.8687 | 0.8846 | 0.9126 |
73
+ | 0.0204 | 16.0 | 7504 | 0.6990 | 0.9063 | 0.8687 | 0.8861 | 0.9126 |
74
+ | 0.0204 | 17.0 | 7973 | 0.7268 | 0.9103 | 0.8677 | 0.8871 | 0.9115 |
75
+ | 0.0185 | 18.0 | 8442 | 0.7210 | 0.9066 | 0.8766 | 0.8907 | 0.9147 |
76
+ | 0.0181 | 19.0 | 8911 | 0.7346 | 0.9096 | 0.8732 | 0.8902 | 0.9147 |
77
+ | 0.0151 | 20.0 | 9380 | 0.7363 | 0.9090 | 0.8720 | 0.8892 | 0.9136 |
78
+
79
+
80
+ ### Framework versions
81
+
82
+ - Transformers 4.41.2
83
+ - Pytorch 2.3.0+cu121
84
+ - Datasets 2.20.0
85
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "mental/mental-bert-base-uncased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "NEGATIVE",
14
+ "1": "POSITIVE",
15
+ "2": "MODERATE"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "label2id": {
20
+ "MODERATE": 2,
21
+ "NEGATIVE": 0,
22
+ "POSITIVE": 1
23
+ },
24
+ "layer_norm_eps": 1e-12,
25
+ "max_position_embeddings": 512,
26
+ "model_type": "bert",
27
+ "num_attention_heads": 12,
28
+ "num_hidden_layers": 12,
29
+ "pad_token_id": 0,
30
+ "position_embedding_type": "absolute",
31
+ "problem_type": "single_label_classification",
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.41.2",
34
+ "type_vocab_size": 2,
35
+ "use_cache": true,
36
+ "vocab_size": 30522
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:643f6bfa885d16217d66631b0a99b6add550db784e996197cf7c8238dbfcbc49
3
+ size 437961724
runs/Jun22_12-34-27_c06c4ffc31a4/events.out.tfevents.1719059685.c06c4ffc31a4.189.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82ce8f08c494209bcd24e0a738d4ca319c5b837c23574fb5960a4ea1d5a8afe4
3
+ size 12065
runs/Jun22_12-34-27_c06c4ffc31a4/events.out.tfevents.1719060772.c06c4ffc31a4.189.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c09d3b42f89e20296de99394abdf348214ffab6da980ed245436f2cc37051925
3
+ size 560
runs/Jun22_12-54-01_c06c4ffc31a4/events.out.tfevents.1719060849.c06c4ffc31a4.189.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d0e7a80b8536af40f3b788d25c840f84a4233e99697e88d750739b1f79e455e
3
+ size 18684
runs/Jun22_12-54-01_c06c4ffc31a4/events.out.tfevents.1719063192.c06c4ffc31a4.189.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fae328365b0467a7d1669af3c9e8795ae59895c378f6d227c4b3a9657508c51
3
+ size 1032
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "mask_token": "[MASK]",
48
+ "model_max_length": 512,
49
+ "pad_token": "[PAD]",
50
+ "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "BertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a69d82984dc9421c7c74aea84640976979689e33f33b63a60446871303acfe05
3
+ size 5176
vocab.txt ADDED
The diff for this file is too large to render. See raw diff