notlath commited on
Commit
170ebac
·
verified ·
1 Parent(s): 8262d21

notlath/BioBERT_Symptom2Disease_dataset

Browse files
Files changed (6) hide show
  1. README.md +74 -0
  2. config.json +45 -0
  3. model.safetensors +3 -0
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +14 -0
  6. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: dmis-lab/biobert-v1.1
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: BioBERT_Symptom2Disease_dataset
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
+ # BioBERT_Symptom2Disease_dataset
17
+
18
+ This model is a fine-tuned version of [dmis-lab/biobert-v1.1](https://huggingface.co/dmis-lab/biobert-v1.1) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.4577
21
+ - Accuracy: 0.9867
22
+ - F1 Macro: 0.9866
23
+ - Precision Macro: 0.9868
24
+ - Recall Macro: 0.9867
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 0.00010665073784797153
44
+ - train_batch_size: 4
45
+ - eval_batch_size: 8
46
+ - seed: 42
47
+ - gradient_accumulation_steps: 8
48
+ - total_train_batch_size: 32
49
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
50
+ - lr_scheduler_type: cosine
51
+ - lr_scheduler_warmup_steps: 65
52
+ - num_epochs: 10
53
+ - label_smoothing_factor: 0.1
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | Precision Macro | Recall Macro |
58
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:---------------:|:------------:|
59
+ | 10.2542 | 1.0 | 66 | 0.6162 | 0.9289 | 0.9297 | 0.9366 | 0.9289 |
60
+ | 4.3535 | 2.0 | 132 | 0.5109 | 0.9644 | 0.9643 | 0.9667 | 0.9644 |
61
+ | 3.8697 | 3.0 | 198 | 0.4679 | 0.9867 | 0.9867 | 0.9871 | 0.9867 |
62
+ | 3.5071 | 4.0 | 264 | 0.4744 | 0.9822 | 0.9823 | 0.9826 | 0.9822 |
63
+ | 3.3928 | 5.0 | 330 | 0.4572 | 0.9889 | 0.9888 | 0.9890 | 0.9889 |
64
+ | 3.3732 | 6.0 | 396 | 0.4714 | 0.98 | 0.9800 | 0.9802 | 0.98 |
65
+ | 3.3737 | 7.0 | 462 | 0.4599 | 0.9844 | 0.9844 | 0.9845 | 0.9844 |
66
+ | 3.3634 | 8.0 | 528 | 0.4577 | 0.9867 | 0.9866 | 0.9868 | 0.9867 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 5.3.0
72
+ - Pytorch 2.11.0+cu130
73
+ - Datasets 4.8.4
74
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": 0,
17
+ "1": 1,
18
+ "2": 2,
19
+ "3": 3,
20
+ "4": 4,
21
+ "5": 5
22
+ },
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 3072,
25
+ "is_decoder": false,
26
+ "label2id": {
27
+ "0": 0,
28
+ "1": 1,
29
+ "2": 2,
30
+ "3": 3,
31
+ "4": 4,
32
+ "5": 5
33
+ },
34
+ "layer_norm_eps": 1e-12,
35
+ "max_position_embeddings": 512,
36
+ "model_type": "bert",
37
+ "num_attention_heads": 12,
38
+ "num_hidden_layers": 12,
39
+ "pad_token_id": 0,
40
+ "tie_word_embeddings": true,
41
+ "transformers_version": "5.3.0",
42
+ "type_vocab_size": 2,
43
+ "use_cache": false,
44
+ "vocab_size": 28996
45
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50e43ae6550f6ee861ccaa6ee80086cd71d573374abd362579d02ff1f72fc1d8
3
+ size 433283048
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": false,
5
+ "is_local": false,
6
+ "mask_token": "[MASK]",
7
+ "model_max_length": 512,
8
+ "pad_token": "[PAD]",
9
+ "sep_token": "[SEP]",
10
+ "strip_accents": null,
11
+ "tokenize_chinese_chars": true,
12
+ "tokenizer_class": "BertTokenizer",
13
+ "unk_token": "[UNK]"
14
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b23e1647d0882ca1b9a48c0ea4929f6715b9d236fe641e58b6e642032e0a08cb
3
+ size 5265