End of training
Browse files- README.md +75 -0
- config.json +46 -0
- model.safetensors +3 -0
- runs/Jul21_17-52-52_3f8ac3307322/events.out.tfevents.1721584373.3f8ac3307322.181.7 +3 -0
- runs/Jul21_17-52-52_3f8ac3307322/events.out.tfevents.1721585142.3f8ac3307322.181.9 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +55 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
model-index:
|
5 |
+
- name: ner_model_ep3
|
6 |
+
results: []
|
7 |
+
---
|
8 |
+
|
9 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
10 |
+
should probably proofread and complete it, then remove this comment. -->
|
11 |
+
|
12 |
+
# ner_model_ep3
|
13 |
+
|
14 |
+
This model was trained from scratch on the None dataset.
|
15 |
+
It achieves the following results on the evaluation set:
|
16 |
+
- Loss: 0.3874
|
17 |
+
- allergy Name F1: 0.7968
|
18 |
+
- allergy Name Pres: 0.7706
|
19 |
+
- allergy Name Rec: 0.8249
|
20 |
+
- cancer F1: 0.7556
|
21 |
+
- cancer Pres: 0.7589
|
22 |
+
- cancer Rec: 0.7524
|
23 |
+
- chronic Disease F1: 0.7776
|
24 |
+
- chronic Disease Pres: 0.7562
|
25 |
+
- chronic Disease Rec: 0.8002
|
26 |
+
- treatment F1: 0.7804
|
27 |
+
- treatmen Prest: 0.7620
|
28 |
+
- treatment Rec: 0.7996
|
29 |
+
- Over All Precision: 0.7596
|
30 |
+
- Over All Recall: 0.7936
|
31 |
+
- Over All F1: 0.7762
|
32 |
+
- Over All Accuracy: 0.8806
|
33 |
+
|
34 |
+
## Model description
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Intended uses & limitations
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Training and evaluation data
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training procedure
|
47 |
+
|
48 |
+
### Training hyperparameters
|
49 |
+
|
50 |
+
The following hyperparameters were used during training:
|
51 |
+
- learning_rate: 2e-05
|
52 |
+
- train_batch_size: 16
|
53 |
+
- eval_batch_size: 16
|
54 |
+
- seed: 42
|
55 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
56 |
+
- lr_scheduler_type: linear
|
57 |
+
- num_epochs: 5
|
58 |
+
|
59 |
+
### Training results
|
60 |
+
|
61 |
+
| 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 |
|
62 |
+
|:-------------:|:-----:|:----:|:---------------:|:----------------:|:------------------:|:-----------------:|:----------:|:------------:|:-----------:|:-------------------:|:---------------------:|:--------------------:|:-------------:|:---------------:|:--------------:|:------------------:|:---------------:|:-----------:|:-----------------:|
|
63 |
+
| 0.3761 | 1.0 | 324 | 0.3480 | 0.7346 | 0.6720 | 0.8099 | 0.7108 | 0.7584 | 0.6688 | 0.7657 | 0.7619 | 0.7695 | 0.7700 | 0.7437 | 0.7983 | 0.7499 | 0.7687 | 0.7592 | 0.8738 |
|
64 |
+
| 0.29 | 2.0 | 648 | 0.3548 | 0.7593 | 0.7023 | 0.8263 | 0.7406 | 0.7683 | 0.7149 | 0.7710 | 0.7608 | 0.7816 | 0.7738 | 0.7435 | 0.8067 | 0.7519 | 0.7842 | 0.7677 | 0.8775 |
|
65 |
+
| 0.232 | 3.0 | 972 | 0.3579 | 0.8046 | 0.7787 | 0.8323 | 0.7446 | 0.7472 | 0.7421 | 0.7763 | 0.7568 | 0.7968 | 0.7798 | 0.7658 | 0.7944 | 0.7601 | 0.7887 | 0.7741 | 0.8809 |
|
66 |
+
| 0.1945 | 4.0 | 1296 | 0.3829 | 0.7942 | 0.7645 | 0.8263 | 0.7463 | 0.7678 | 0.7260 | 0.7749 | 0.7584 | 0.7920 | 0.7808 | 0.7683 | 0.7938 | 0.7643 | 0.7840 | 0.7741 | 0.8792 |
|
67 |
+
| 0.1734 | 5.0 | 1620 | 0.3874 | 0.7968 | 0.7706 | 0.8249 | 0.7556 | 0.7589 | 0.7524 | 0.7776 | 0.7562 | 0.8002 | 0.7804 | 0.7620 | 0.7996 | 0.7596 | 0.7936 | 0.7762 | 0.8806 |
|
68 |
+
|
69 |
+
|
70 |
+
### Framework versions
|
71 |
+
|
72 |
+
- Transformers 4.42.4
|
73 |
+
- Pytorch 2.3.1+cu121
|
74 |
+
- Datasets 2.20.0
|
75 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "ner_model_ep2",
|
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:fcf3c05cfc8cbca97c6b0b15f02fb15a6448e4b7c9013fbf998cbac8828ecf6e
|
3 |
+
size 265491548
|
runs/Jul21_17-52-52_3f8ac3307322/events.out.tfevents.1721584373.3f8ac3307322.181.7
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eb319bab77ee396a1b9a0f06c7d71535bb6ec9a98820ae3779291123fc7e4a6b
|
3 |
+
size 12707
|
runs/Jul21_17-52-52_3f8ac3307322/events.out.tfevents.1721585142.3f8ac3307322.181.9
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aab68ef8d989b446cc5ddbaaa66bf23620c6cb37683adaf0e752e8009d49c090
|
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:f75ac1ee4717926ef66bb2e19c422ce482ae339771c7398c9c9736d155fd123b
|
3 |
+
size 5112
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|