Polo123 commited on
Commit
6090c95
1 Parent(s): 21e4315

End of training

Browse files
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: distilbert/distilbert-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: ner_model_ep_all
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # ner_model_ep_all
15
+
16
+ This model is a fine-tuned version of [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) on the None dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 0.3739
19
+ - allergy Name F1: 0.7755
20
+ - allergy Name Pres: 0.76
21
+ - allergy Name Rec: 0.7917
22
+ - cancer F1: 0.7389
23
+ - cancer Pres: 0.7283
24
+ - cancer Rec: 0.7497
25
+ - chronic Disease F1: 0.7778
26
+ - chronic Disease Pres: 0.7676
27
+ - chronic Disease Rec: 0.7882
28
+ - treatment F1: 0.7918
29
+ - treatmen Prest: 0.7837
30
+ - treatment Rec: 0.7999
31
+ - Over All Precision: 0.7698
32
+ - Over All Recall: 0.7887
33
+ - Over All F1: 0.7792
34
+ - Over All Accuracy: 0.8803
35
+
36
+ ## Model description
37
+
38
+ More information needed
39
+
40
+ ## Intended uses & limitations
41
+
42
+ More information needed
43
+
44
+ ## Training and evaluation data
45
+
46
+ More information needed
47
+
48
+ ## Training procedure
49
+
50
+ ### Training hyperparameters
51
+
52
+ The following hyperparameters were used during training:
53
+ - learning_rate: 2e-05
54
+ - train_batch_size: 16
55
+ - eval_batch_size: 16
56
+ - seed: 42
57
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
58
+ - lr_scheduler_type: linear
59
+ - num_epochs: 5
60
+
61
+ ### Training results
62
+
63
+ | Training Loss | Epoch | Step | Validation Loss | allergy Name F1 | allergy Name Pres | allergy Name Rec | cancer F1 | cancer Pres | cancer Rec | chronic Disease F1 | chronic Disease Pres | chronic Disease Rec | treatment F1 | treatmen Prest | treatment Rec | Over All Precision | Over All Recall | Over All F1 | Over All Accuracy |
64
+ |:-------------:|:-----:|:----:|:---------------:|:----------------:|:------------------:|:-----------------:|:----------:|:------------:|:-----------:|:-------------------:|:---------------------:|:--------------------:|:-------------:|:---------------:|:--------------:|:------------------:|:---------------:|:-----------:|:-----------------:|
65
+ | 0.5174 | 1.0 | 1005 | 0.3949 | 0.7230 | 0.7710 | 0.6806 | 0.6254 | 0.6354 | 0.6158 | 0.6958 | 0.6914 | 0.7003 | 0.7376 | 0.7683 | 0.7093 | 0.7218 | 0.6925 | 0.7068 | 0.8570 |
66
+ | 0.3297 | 2.0 | 2010 | 0.3664 | 0.7746 | 0.7857 | 0.7639 | 0.7133 | 0.7171 | 0.7095 | 0.7509 | 0.7746 | 0.7287 | 0.7738 | 0.7834 | 0.7643 | 0.7711 | 0.7444 | 0.7576 | 0.8732 |
67
+ | 0.2691 | 3.0 | 3015 | 0.3585 | 0.7589 | 0.8364 | 0.6944 | 0.7415 | 0.7417 | 0.7412 | 0.7674 | 0.7754 | 0.7596 | 0.7819 | 0.7652 | 0.7994 | 0.7670 | 0.7748 | 0.7709 | 0.8780 |
68
+ | 0.2278 | 4.0 | 4020 | 0.3686 | 0.7717 | 0.7878 | 0.7562 | 0.7400 | 0.7170 | 0.7645 | 0.7762 | 0.7717 | 0.7807 | 0.7885 | 0.7604 | 0.8188 | 0.7588 | 0.7965 | 0.7772 | 0.8795 |
69
+ | 0.2038 | 5.0 | 5025 | 0.3739 | 0.7755 | 0.76 | 0.7917 | 0.7389 | 0.7283 | 0.7497 | 0.7778 | 0.7676 | 0.7882 | 0.7918 | 0.7837 | 0.7999 | 0.7698 | 0.7887 | 0.7792 | 0.8803 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 4.42.4
75
+ - Pytorch 2.3.1+cu121
76
+ - Datasets 2.20.0
77
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilbert/distilbert-base-uncased",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForTokenClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "B-treatment",
14
+ "2": "B-chronic_disease",
15
+ "3": "I-chronic_disease",
16
+ "4": "I-treatment",
17
+ "5": "B-cancer",
18
+ "6": "I-cancer",
19
+ "7": "B-allergy_name",
20
+ "8": "I-allergy_name"
21
+ },
22
+ "initializer_range": 0.02,
23
+ "label2id": {
24
+ "B-allergy_name": 7,
25
+ "B-cancer": 5,
26
+ "B-chronic_disease": 2,
27
+ "B-treatment": 1,
28
+ "I-allergy_name": 8,
29
+ "I-cancer": 6,
30
+ "I-chronic_disease": 3,
31
+ "I-treatment": 4,
32
+ "O": 0
33
+ },
34
+ "max_position_embeddings": 512,
35
+ "model_type": "distilbert",
36
+ "n_heads": 12,
37
+ "n_layers": 6,
38
+ "pad_token_id": 0,
39
+ "qa_dropout": 0.1,
40
+ "seq_classif_dropout": 0.2,
41
+ "sinusoidal_pos_embds": false,
42
+ "tie_weights_": true,
43
+ "torch_dtype": "float32",
44
+ "transformers_version": "4.42.4",
45
+ "vocab_size": 30522
46
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21e13b645bb652c5188f783a1d3f258b09cf8d89fdc83e3a6733f018c5935773
3
+ size 265491548
runs/Jul21_17-37-22_3f8ac3307322/events.out.tfevents.1721583442.3f8ac3307322.181.5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40a3e9c3e17555972d9508169b4071584178c63c460e38b775114248930553a8
3
+ size 12698
runs/Jul21_17-37-22_3f8ac3307322/events.out.tfevents.1721585200.3f8ac3307322.181.10 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfe7c51162c0ffffbcaa92550c9d8fa5bb8d4f7fd8cbd1b84cef37e1f4cb267c
3
+ size 1310
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,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": "DistilBertTokenizer",
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:fefd957792ec8877c6e3fbd775d615992420e090e424873f49c516e67c37bf4c
3
+ size 5112
vocab.txt ADDED
The diff for this file is too large to render. See raw diff