Polo123 commited on
Commit
d1a7c13
·
verified ·
1 Parent(s): b51a6c6

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_ep1
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_ep1
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.3469
19
+ - allergy Name F1: 0.7059
20
+ - allergy Name Pres: 0.7326
21
+ - allergy Name Rec: 0.6811
22
+ - cancer F1: 0.6499
23
+ - cancer Pres: 0.6837
24
+ - cancer Rec: 0.6192
25
+ - chronic Disease F1: 0.7431
26
+ - chronic Disease Pres: 0.7462
27
+ - chronic Disease Rec: 0.7400
28
+ - treatment F1: 0.7572
29
+ - treatmen Prest: 0.7680
30
+ - treatment Rec: 0.7468
31
+ - Over All Precision: 0.7475
32
+ - Over All Recall: 0.7237
33
+ - Over All F1: 0.7354
34
+ - Over All Accuracy: 0.8824
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.5799 | 1.0 | 368 | 0.4111 | 0.2933 | 0.825 | 0.1784 | 0.5345 | 0.5010 | 0.5728 | 0.6044 | 0.6269 | 0.5834 | 0.6718 | 0.6294 | 0.7204 | 0.6084 | 0.6379 | 0.6228 | 0.8467 |
66
+ | 0.3846 | 2.0 | 736 | 0.3624 | 0.6618 | 0.6054 | 0.7297 | 0.6057 | 0.6025 | 0.6088 | 0.6553 | 0.6925 | 0.6219 | 0.7153 | 0.7450 | 0.6879 | 0.7 | 0.6537 | 0.6761 | 0.8642 |
67
+ | 0.3069 | 3.0 | 1104 | 0.3516 | 0.6801 | 0.7284 | 0.6378 | 0.6316 | 0.6489 | 0.6152 | 0.6994 | 0.7227 | 0.6775 | 0.7317 | 0.7368 | 0.7267 | 0.7187 | 0.6906 | 0.7044 | 0.8733 |
68
+ | 0.2571 | 4.0 | 1472 | 0.3492 | 0.6807 | 0.7687 | 0.6108 | 0.6472 | 0.6867 | 0.612 | 0.7239 | 0.7276 | 0.7201 | 0.7456 | 0.7548 | 0.7366 | 0.7358 | 0.7092 | 0.7222 | 0.8779 |
69
+ | 0.2276 | 5.0 | 1840 | 0.3469 | 0.7059 | 0.7326 | 0.6811 | 0.6499 | 0.6837 | 0.6192 | 0.7431 | 0.7462 | 0.7400 | 0.7572 | 0.7680 | 0.7468 | 0.7475 | 0.7237 | 0.7354 | 0.8824 |
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:f25b869bc9461e3b8267d47b3304a7fed7e362f8b7fe52b74567c19fb6ddb892
3
+ size 265491548
runs/Jul21_17-24-14_3f8ac3307322/events.out.tfevents.1721582655.3f8ac3307322.181.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebdd4db0d5f2d90e8b15e333b6030a9bf2a07c53dab952143b3b6a25545010b3
3
+ size 5170
runs/Jul21_17-24-28_3f8ac3307322/events.out.tfevents.1721582668.3f8ac3307322.181.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c84d4d36aee8abb8f08766525323f78f77cfb6baf3474f39757c380e557df90b
3
+ size 12689
runs/Jul21_17-24-28_3f8ac3307322/events.out.tfevents.1721582912.3f8ac3307322.181.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:846db23fdf8d5d0ab095d17fbb355bd4693e0361a80c4561804667c046e60ea8
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:2b61bfdfde54047dadb889924d75065cc34eedaf96f136775fe2e9afc49da921
3
+ size 5112
vocab.txt ADDED
The diff for this file is too large to render. See raw diff