hebashakeel commited on
Commit
1760e3a
·
verified ·
1 Parent(s): 1f0f8c2

End of training

Browse files
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: cc-by-nc-4.0
4
+ base_model: mental/mental-bert-base-uncased
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: mentalBERT-wellness-classifier
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
+ # mentalBERT-wellness-classifier
18
+
19
+ This model is a fine-tuned version of [mental/mental-bert-base-uncased](https://huggingface.co/mental/mental-bert-base-uncased) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 1.0471
22
+ - Accuracy: 0.722
23
+ - Auc: 0.915
24
+ - Precision Class 0: 0.765
25
+ - Precision Class 1: 0.762
26
+ - Precision Class 2: 0.745
27
+ - Precision Class 3: 0.684
28
+ - Recall Class 0: 0.736
29
+ - Recall Class 1: 0.593
30
+ - Recall Class 2: 0.651
31
+ - Recall Class 3: 0.796
32
+ - F1 Score Class 0: 0.75
33
+ - F1 Score Class 1: 0.667
34
+ - F1 Score Class 2: 0.695
35
+ - F1 Score Class 3: 0.736
36
+
37
+ ## Model description
38
+
39
+ More information needed
40
+
41
+ ## Intended uses & limitations
42
+
43
+ More information needed
44
+
45
+ ## Training and evaluation data
46
+
47
+ More information needed
48
+
49
+ ## Training procedure
50
+
51
+ ### Training hyperparameters
52
+
53
+ The following hyperparameters were used during training:
54
+ - learning_rate: 0.0002
55
+ - train_batch_size: 8
56
+ - eval_batch_size: 8
57
+ - seed: 42
58
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
59
+ - lr_scheduler_type: linear
60
+ - num_epochs: 10
61
+
62
+ ### Training results
63
+
64
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Auc | Precision Class 0 | Precision Class 1 | Precision Class 2 | Precision Class 3 | Recall Class 0 | Recall Class 1 | Recall Class 2 | Recall Class 3 | F1 Score Class 0 | F1 Score Class 1 | F1 Score Class 2 | F1 Score Class 3 |
65
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:-----:|:-----------------:|:-----------------:|:-----------------:|:-----------------:|:--------------:|:--------------:|:--------------:|:--------------:|:----------------:|:----------------:|:----------------:|:----------------:|
66
+ | 0.0887 | 1.0 | 140 | 1.2702 | 0.73 | 0.91 | 0.783 | 0.773 | 0.746 | 0.693 | 0.679 | 0.63 | 0.698 | 0.806 | 0.727 | 0.694 | 0.721 | 0.745 |
67
+ | 0.2058 | 2.0 | 280 | 1.0340 | 0.718 | 0.916 | 0.75 | 0.72 | 0.736 | 0.694 | 0.736 | 0.667 | 0.619 | 0.786 | 0.743 | 0.692 | 0.672 | 0.737 |
68
+ | 0.1921 | 3.0 | 420 | 1.0234 | 0.739 | 0.919 | 0.733 | 0.731 | 0.75 | 0.737 | 0.83 | 0.704 | 0.667 | 0.745 | 0.779 | 0.717 | 0.706 | 0.741 |
69
+ | 0.184 | 4.0 | 560 | 1.0486 | 0.73 | 0.917 | 0.719 | 0.773 | 0.738 | 0.723 | 0.774 | 0.63 | 0.714 | 0.745 | 0.745 | 0.694 | 0.726 | 0.734 |
70
+ | 0.1666 | 5.0 | 700 | 1.0084 | 0.747 | 0.918 | 0.769 | 0.739 | 0.738 | 0.743 | 0.755 | 0.63 | 0.762 | 0.765 | 0.762 | 0.68 | 0.75 | 0.754 |
71
+ | 0.1558 | 6.0 | 840 | 1.0314 | 0.739 | 0.917 | 0.759 | 0.773 | 0.738 | 0.721 | 0.774 | 0.63 | 0.714 | 0.765 | 0.766 | 0.694 | 0.726 | 0.743 |
72
+ | 0.138 | 7.0 | 980 | 1.0733 | 0.73 | 0.915 | 0.776 | 0.773 | 0.75 | 0.693 | 0.717 | 0.63 | 0.667 | 0.806 | 0.745 | 0.694 | 0.706 | 0.745 |
73
+ | 0.1481 | 8.0 | 1120 | 1.0656 | 0.722 | 0.914 | 0.787 | 0.773 | 0.741 | 0.678 | 0.698 | 0.63 | 0.635 | 0.816 | 0.74 | 0.694 | 0.684 | 0.741 |
74
+ | 0.1433 | 9.0 | 1260 | 1.0520 | 0.718 | 0.915 | 0.765 | 0.762 | 0.741 | 0.678 | 0.736 | 0.593 | 0.635 | 0.796 | 0.75 | 0.667 | 0.684 | 0.732 |
75
+ | 0.1577 | 10.0 | 1400 | 1.0471 | 0.722 | 0.915 | 0.765 | 0.762 | 0.745 | 0.684 | 0.736 | 0.593 | 0.651 | 0.796 | 0.75 | 0.667 | 0.695 | 0.736 |
76
+
77
+
78
+ ### Framework versions
79
+
80
+ - Transformers 4.45.1
81
+ - Pytorch 2.4.0
82
+ - Datasets 3.0.1
83
+ - Tokenizers 0.20.0
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "LABEL_0",
14
+ "1": "LABEL_1",
15
+ "2": "LABEL_2",
16
+ "3": "LABEL_3"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "LABEL_0": 0,
22
+ "LABEL_1": 1,
23
+ "LABEL_2": 2,
24
+ "LABEL_3": 3
25
+ },
26
+ "layer_norm_eps": 1e-12,
27
+ "max_position_embeddings": 512,
28
+ "model_type": "bert",
29
+ "num_attention_heads": 12,
30
+ "num_hidden_layers": 12,
31
+ "pad_token_id": 0,
32
+ "position_embedding_type": "absolute",
33
+ "problem_type": "single_label_classification",
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.45.1",
36
+ "type_vocab_size": 2,
37
+ "use_cache": true,
38
+ "vocab_size": 30522
39
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19aaae15450319a0aac6eb774adbaa3705f3e90a957ac961639ac7fd535df53d
3
+ size 437964800
runs/Nov05_04-15-18_897f0bb242d7/events.out.tfevents.1730780124.897f0bb242d7.30.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0d414b5988120c1e68b752174f9297147d5643301a8513d95c12dc6c053ec80
3
+ size 5424
runs/Nov05_04-18-18_897f0bb242d7/events.out.tfevents.1730780303.897f0bb242d7.30.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b5e5009640b02383094088190a5667d7577987f425bc34201067f60706e0bdd
3
+ size 16186
runs/Nov05_04-30-16_897f0bb242d7/events.out.tfevents.1730781022.897f0bb242d7.30.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ceaf38b77d5ddc79e9f5f957f4c2adc46ef2faefedd5e1048734542961fe634d
3
+ size 18606
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": false,
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:ef3fc5da96752cae1cdd701ae4ba5da7ef32b12b4f6f180153208d80f3dfd274
3
+ size 5240
vocab.txt ADDED
The diff for this file is too large to render. See raw diff