cristianmanosalva commited on
Commit
f73b015
·
verified ·
1 Parent(s): e90cf8e

End of training

Browse files
README.md ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: cc-by-4.0
4
+ base_model: NazaGara/NER-fine-tuned-BETO
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - biobert_json
9
+ metrics:
10
+ - precision
11
+ - recall
12
+ - f1
13
+ - accuracy
14
+ model-index:
15
+ - name: NER-finetuning-BETO-CM-V3
16
+ results:
17
+ - task:
18
+ name: Token Classification
19
+ type: token-classification
20
+ dataset:
21
+ name: biobert_json
22
+ type: biobert_json
23
+ config: Biobert_json
24
+ split: validation
25
+ args: Biobert_json
26
+ metrics:
27
+ - name: Precision
28
+ type: precision
29
+ value: 0.9326628771316134
30
+ - name: Recall
31
+ type: recall
32
+ value: 0.9424500165690931
33
+ - name: F1
34
+ type: f1
35
+ value: 0.9375309048953355
36
+ - name: Accuracy
37
+ type: accuracy
38
+ value: 0.977440285204991
39
+ ---
40
+
41
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
42
+ should probably proofread and complete it, then remove this comment. -->
43
+
44
+ # NER-finetuning-BETO-CM-V3
45
+
46
+ This model is a fine-tuned version of [NazaGara/NER-fine-tuned-BETO](https://huggingface.co/NazaGara/NER-fine-tuned-BETO) on the biobert_json dataset.
47
+ It achieves the following results on the evaluation set:
48
+ - Loss: 0.1452
49
+ - Precision: 0.9327
50
+ - Recall: 0.9425
51
+ - F1: 0.9375
52
+ - Accuracy: 0.9774
53
+
54
+ ## Model description
55
+
56
+ More information needed
57
+
58
+ ## Intended uses & limitations
59
+
60
+ More information needed
61
+
62
+ ## Training and evaluation data
63
+
64
+ More information needed
65
+
66
+ ## Training procedure
67
+
68
+ ### Training hyperparameters
69
+
70
+ The following hyperparameters were used during training:
71
+ - learning_rate: 2e-05
72
+ - train_batch_size: 8
73
+ - eval_batch_size: 8
74
+ - seed: 42
75
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
76
+ - lr_scheduler_type: linear
77
+ - num_epochs: 10
78
+
79
+ ### Training results
80
+
81
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
82
+ |:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
83
+ | 0.0459 | 1.0 | 1224 | 0.1312 | 0.9209 | 0.9487 | 0.9346 | 0.9721 |
84
+ | 0.0457 | 2.0 | 2448 | 0.1208 | 0.9199 | 0.9584 | 0.9388 | 0.9761 |
85
+ | 0.0473 | 3.0 | 3672 | 0.1092 | 0.9341 | 0.9527 | 0.9433 | 0.9797 |
86
+ | 0.0335 | 4.0 | 4896 | 0.1123 | 0.9321 | 0.9482 | 0.9401 | 0.9774 |
87
+ | 0.0299 | 5.0 | 6120 | 0.1190 | 0.9313 | 0.9475 | 0.9393 | 0.9768 |
88
+ | 0.0273 | 6.0 | 7344 | 0.1224 | 0.9335 | 0.9444 | 0.9389 | 0.9774 |
89
+ | 0.0208 | 7.0 | 8568 | 0.1354 | 0.9356 | 0.9463 | 0.9409 | 0.9782 |
90
+ | 0.02 | 8.0 | 9792 | 0.1371 | 0.9302 | 0.9434 | 0.9368 | 0.9774 |
91
+ | 0.0158 | 9.0 | 11016 | 0.1408 | 0.9320 | 0.9448 | 0.9383 | 0.9777 |
92
+ | 0.0153 | 10.0 | 12240 | 0.1452 | 0.9327 | 0.9425 | 0.9375 | 0.9774 |
93
+
94
+
95
+ ### Framework versions
96
+
97
+ - Transformers 4.46.2
98
+ - Pytorch 2.5.1+cu121
99
+ - Datasets 3.1.0
100
+ - Tokenizers 0.20.3
config.json ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "NazaGara/NER-fine-tuned-BETO",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "B_CANCER_CONCEPT",
14
+ "1": "B_CHEMOTHERAPY",
15
+ "2": "B_DATE",
16
+ "3": "B_DRUG",
17
+ "4": "B_FAMILY",
18
+ "5": "B_FREQ",
19
+ "6": "B_IMPLICIT_DATE",
20
+ "7": "B_INTERVAL",
21
+ "8": "B_METRIC",
22
+ "9": "B_OCURRENCE_EVENT",
23
+ "10": "B_QUANTITY",
24
+ "11": "B_RADIOTHERAPY",
25
+ "12": "B_SMOKER_STATUS",
26
+ "13": "B_STAGE",
27
+ "14": "B_SURGERY",
28
+ "15": "B_TNM",
29
+ "16": "I_CANCER_CONCEPT",
30
+ "17": "I_DATE",
31
+ "18": "I_DRUG",
32
+ "19": "I_FAMILY",
33
+ "20": "I_FREQ",
34
+ "21": "I_IMPLICIT_DATE",
35
+ "22": "I_INTERVAL",
36
+ "23": "I_METRIC",
37
+ "24": "I_OCURRENCE_EVENT",
38
+ "25": "I_SMOKER_STATUS",
39
+ "26": "I_STAGE",
40
+ "27": "I_SURGERY",
41
+ "28": "I_TNM",
42
+ "29": "O"
43
+ },
44
+ "initializer_range": 0.02,
45
+ "intermediate_size": 3072,
46
+ "label2id": {
47
+ "B_CANCER_CONCEPT": 0,
48
+ "B_CHEMOTHERAPY": 1,
49
+ "B_DATE": 2,
50
+ "B_DRUG": 3,
51
+ "B_FAMILY": 4,
52
+ "B_FREQ": 5,
53
+ "B_IMPLICIT_DATE": 6,
54
+ "B_INTERVAL": 7,
55
+ "B_METRIC": 8,
56
+ "B_OCURRENCE_EVENT": 9,
57
+ "B_QUANTITY": 10,
58
+ "B_RADIOTHERAPY": 11,
59
+ "B_SMOKER_STATUS": 12,
60
+ "B_STAGE": 13,
61
+ "B_SURGERY": 14,
62
+ "B_TNM": 15,
63
+ "I_CANCER_CONCEPT": 16,
64
+ "I_DATE": 17,
65
+ "I_DRUG": 18,
66
+ "I_FAMILY": 19,
67
+ "I_FREQ": 20,
68
+ "I_IMPLICIT_DATE": 21,
69
+ "I_INTERVAL": 22,
70
+ "I_METRIC": 23,
71
+ "I_OCURRENCE_EVENT": 24,
72
+ "I_SMOKER_STATUS": 25,
73
+ "I_STAGE": 26,
74
+ "I_SURGERY": 27,
75
+ "I_TNM": 28,
76
+ "O": 29
77
+ },
78
+ "layer_norm_eps": 1e-12,
79
+ "max_position_embeddings": 512,
80
+ "model_type": "bert",
81
+ "num_attention_heads": 12,
82
+ "num_hidden_layers": 12,
83
+ "output_past": true,
84
+ "pad_token_id": 1,
85
+ "position_embedding_type": "absolute",
86
+ "torch_dtype": "float32",
87
+ "transformers_version": "4.46.2",
88
+ "type_vocab_size": 2,
89
+ "use_cache": true,
90
+ "vocab_size": 31002
91
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:352dafbddd49f7c489d719c8d3a53ea4e31c282e045349fdb8eeb53da4024ec3
3
+ size 437156776
runs/Nov20_10-12-39_94090b128102/events.out.tfevents.1732097583.94090b128102.1216.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:402b57b893345768aae0094ea8742ecd3e3f15282a102d37171bc6464e0c114c
3
+ size 6535
runs/Nov20_10-24-44_94090b128102/events.out.tfevents.1732098289.94090b128102.1216.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0581470c40f52f4cf327c3d8875e19b6dd0a37f636becbbd0701380521eef53
3
+ size 9783
runs/Nov20_10-39-04_94090b128102/events.out.tfevents.1732099149.94090b128102.1216.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa9a9176bf0a6e039500b3ce7440d85ebbd9cfafa1c0310782d2b53b0ac36929
3
+ size 16635
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "[MASK]",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "[PAD]",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "3": {
21
+ "content": "[UNK]",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "4": {
29
+ "content": "[CLS]",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "5": {
37
+ "content": "[SEP]",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "clean_up_tokenization_spaces": false,
46
+ "cls_token": "[CLS]",
47
+ "do_basic_tokenize": true,
48
+ "do_lower_case": false,
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "num_labels": 9,
53
+ "pad_token": "[PAD]",
54
+ "sep_token": "[SEP]",
55
+ "strip_accents": false,
56
+ "tokenize_chinese_chars": true,
57
+ "tokenizer_class": "BertTokenizer",
58
+ "unk_token": "[UNK]"
59
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee7c094c4334ebb1b5d025d9d9902ef7516abdeb6d9ba33207dab5f7ab8bd203
3
+ size 5304
vocab.txt ADDED
The diff for this file is too large to render. See raw diff