adity12345 commited on
Commit
cf00b53
·
verified ·
1 Parent(s): f17e574

End of training

Browse files
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: dmis-lab/biobert-base-cased-v1.2
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - precision
9
+ - recall
10
+ - f1
11
+ model-index:
12
+ - name: BioBert_pubHealth
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
+ # BioBert_pubHealth
20
+
21
+ This model is a fine-tuned version of [dmis-lab/biobert-base-cased-v1.2](https://huggingface.co/dmis-lab/biobert-base-cased-v1.2) on the None dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.6765
24
+ - Accuracy: 0.796
25
+ - Auc: 0.886
26
+ - Precision: 0.861
27
+ - Recall: 0.793
28
+ - F1: 0.825
29
+ - F1-macro: 0.791
30
+ - F1-micro: 0.796
31
+ - F1-weighted: 0.798
32
+
33
+ ## Model description
34
+
35
+ More information needed
36
+
37
+ ## Intended uses & limitations
38
+
39
+ More information needed
40
+
41
+ ## Training and evaluation data
42
+
43
+ More information needed
44
+
45
+ ## Training procedure
46
+
47
+ ### Training hyperparameters
48
+
49
+ The following hyperparameters were used during training:
50
+ - learning_rate: 2e-05
51
+ - train_batch_size: 8
52
+ - eval_batch_size: 8
53
+ - seed: 42
54
+ - gradient_accumulation_steps: 4
55
+ - total_train_batch_size: 32
56
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
57
+ - lr_scheduler_type: linear
58
+ - num_epochs: 5
59
+ - mixed_precision_training: Native AMP
60
+
61
+ ### Training results
62
+
63
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Auc | Precision | Recall | F1 | F1-macro | F1-micro | F1-weighted |
64
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:-----:|:---------:|:------:|:-----:|:--------:|:--------:|:-----------:|
65
+ | 0.5286 | 0.3960 | 100 | 0.4608 | 0.769 | 0.855 | 0.847 | 0.756 | 0.799 | 0.764 | 0.769 | 0.771 |
66
+ | 0.4399 | 0.7921 | 200 | 0.4506 | 0.787 | 0.871 | 0.861 | 0.775 | 0.815 | 0.782 | 0.787 | 0.789 |
67
+ | 0.3929 | 1.1861 | 300 | 0.4363 | 0.791 | 0.878 | 0.829 | 0.826 | 0.828 | 0.781 | 0.791 | 0.791 |
68
+ | 0.368 | 1.5822 | 400 | 0.4003 | 0.797 | 0.884 | 0.881 | 0.77 | 0.822 | 0.794 | 0.797 | 0.8 |
69
+ | 0.3503 | 1.9782 | 500 | 0.4075 | 0.794 | 0.888 | 0.847 | 0.806 | 0.826 | 0.787 | 0.794 | 0.795 |
70
+ | 0.2828 | 2.3723 | 600 | 0.4678 | 0.798 | 0.888 | 0.898 | 0.753 | 0.819 | 0.796 | 0.798 | 0.801 |
71
+ | 0.2647 | 2.7683 | 700 | 0.4296 | 0.796 | 0.89 | 0.893 | 0.755 | 0.818 | 0.793 | 0.796 | 0.799 |
72
+ | 0.2197 | 3.1624 | 800 | 0.5130 | 0.798 | 0.889 | 0.862 | 0.795 | 0.827 | 0.793 | 0.798 | 0.8 |
73
+ | 0.1739 | 3.5584 | 900 | 0.5262 | 0.8 | 0.891 | 0.842 | 0.826 | 0.834 | 0.792 | 0.8 | 0.801 |
74
+ | 0.1517 | 3.9545 | 1000 | 0.6064 | 0.793 | 0.889 | 0.875 | 0.77 | 0.819 | 0.789 | 0.793 | 0.795 |
75
+ | 0.1189 | 4.3485 | 1100 | 0.6257 | 0.793 | 0.887 | 0.848 | 0.803 | 0.825 | 0.786 | 0.793 | 0.795 |
76
+ | 0.0976 | 4.7446 | 1200 | 0.6765 | 0.796 | 0.886 | 0.861 | 0.793 | 0.825 | 0.791 | 0.796 | 0.798 |
77
+
78
+
79
+ ### Framework versions
80
+
81
+ - Transformers 4.53.0
82
+ - Pytorch 2.6.0+cu124
83
+ - Datasets 2.14.4
84
+ - Tokenizers 0.21.2
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.1,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "fake",
12
+ "1": "real"
13
+ },
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 3072,
16
+ "label2id": {
17
+ "fake": 0,
18
+ "real": 1
19
+ },
20
+ "layer_norm_eps": 1e-12,
21
+ "max_position_embeddings": 512,
22
+ "model_type": "bert",
23
+ "num_attention_heads": 12,
24
+ "num_hidden_layers": 12,
25
+ "pad_token_id": 0,
26
+ "position_embedding_type": "absolute",
27
+ "problem_type": "single_label_classification",
28
+ "torch_dtype": "float32",
29
+ "transformers_version": "4.53.0",
30
+ "type_vocab_size": 2,
31
+ "use_cache": true,
32
+ "vocab_size": 28996
33
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:afca71a882361c9f515cb474756019633941e36b9454a576e480709f74527614
3
+ size 433270768
runs/Jul08_08-28-16_7011e4b81f17/events.out.tfevents.1751963325.7011e4b81f17.331.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27d3faf19656361646a7cad5373d58a62b2174c7cee7bb69434c83048c422d40
3
+ size 16042
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9d9fdb0e40466917d57a6b6a968ed37597df60c443ce1d4ef1f1d1f282dfd13
3
+ size 5368
vocab.txt ADDED
The diff for this file is too large to render. See raw diff