luisgasco commited on
Commit
3117cc6
1 Parent(s): 5cc776d

luisgasco/setfit-token-classifier_test_biomed_7ep_b2

Browse files
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: PlanTL-GOB-ES/roberta-base-biomedical-es
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - f1
10
+ - accuracy
11
+ model-index:
12
+ - name: biomedical-roberta-finetuned-iomed_task
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # biomedical-roberta-finetuned-iomed_task
20
+
21
+ This model is a fine-tuned version of [PlanTL-GOB-ES/roberta-base-biomedical-es](https://huggingface.co/PlanTL-GOB-ES/roberta-base-biomedical-es) on the None dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 1.0367
24
+ - Precision: 0.2541
25
+ - Recall: 0.4551
26
+ - F1: 0.3261
27
+ - Accuracy: 0.7718
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 3.5e-06
47
+ - train_batch_size: 2
48
+ - eval_batch_size: 2
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 7
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
57
+ |:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
58
+ | 1.2727 | 0.7 | 1064 | 1.1739 | 0.1144 | 0.2850 | 0.1632 | 0.7461 |
59
+ | 0.9857 | 1.4 | 2128 | 1.0956 | 0.1626 | 0.3425 | 0.2205 | 0.7620 |
60
+ | 0.9233 | 2.1 | 3192 | 1.0081 | 0.1457 | 0.3181 | 0.1999 | 0.7646 |
61
+ | 0.8635 | 2.8 | 4256 | 1.0164 | 0.2019 | 0.3945 | 0.2671 | 0.7705 |
62
+ | 0.821 | 3.5 | 5320 | 0.9852 | 0.1896 | 0.3827 | 0.2536 | 0.7709 |
63
+ | 0.7574 | 4.2 | 6384 | 1.0179 | 0.2230 | 0.4157 | 0.2903 | 0.7714 |
64
+ | 0.7725 | 4.9 | 7448 | 1.0378 | 0.2276 | 0.4299 | 0.2976 | 0.7695 |
65
+ | 0.7365 | 5.6 | 8512 | 1.0315 | 0.2290 | 0.4354 | 0.3001 | 0.7722 |
66
+ | 0.6596 | 6.3 | 9576 | 1.0406 | 0.2475 | 0.4496 | 0.3193 | 0.7723 |
67
+ | 0.7028 | 7.0 | 10640 | 1.0367 | 0.2541 | 0.4551 | 0.3261 | 0.7718 |
68
+
69
+
70
+ ### Framework versions
71
+
72
+ - Transformers 4.33.2
73
+ - Pytorch 2.0.1+cu118
74
+ - Datasets 2.14.5
75
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "PlanTL-GOB-ES/roberta-base-biomedical-es",
3
+ "architectures": [
4
+ "RobertaForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "O",
16
+ "1": "I-Tratamiento",
17
+ "2": "I-Razon Consulta",
18
+ "3": "I-Exploracion y/o Pruebas Complementarias",
19
+ "4": "I-Evolucion",
20
+ "5": "I-Derivacion de/a",
21
+ "6": "I-Antecedentes Personales",
22
+ "7": "I-Antecedentes Familiares",
23
+ "8": "I-4172950",
24
+ "9": "I-4012837",
25
+ "10": "B-Tratamiento",
26
+ "11": "B-Razon Consulta",
27
+ "12": "B-Exploracion y/o Pruebas Complementarias",
28
+ "13": "B-Evolucion",
29
+ "14": "B-Derivacion de/a",
30
+ "15": "B-Antecedentes Personales",
31
+ "16": "B-Antecedentes Familiares",
32
+ "17": "B-4172950",
33
+ "18": "B-4012837"
34
+ },
35
+ "initializer_range": 0.02,
36
+ "intermediate_size": 3072,
37
+ "label2id": {
38
+ "B-4012837": 18,
39
+ "B-4172950": 17,
40
+ "B-Antecedentes Familiares": 16,
41
+ "B-Antecedentes Personales": 15,
42
+ "B-Derivacion de/a": 14,
43
+ "B-Evolucion": 13,
44
+ "B-Exploracion y/o Pruebas Complementarias": 12,
45
+ "B-Razon Consulta": 11,
46
+ "B-Tratamiento": 10,
47
+ "I-4012837": 9,
48
+ "I-4172950": 8,
49
+ "I-Antecedentes Familiares": 7,
50
+ "I-Antecedentes Personales": 6,
51
+ "I-Derivacion de/a": 5,
52
+ "I-Evolucion": 4,
53
+ "I-Exploracion y/o Pruebas Complementarias": 3,
54
+ "I-Razon Consulta": 2,
55
+ "I-Tratamiento": 1,
56
+ "O": 0
57
+ },
58
+ "layer_norm_eps": 1e-05,
59
+ "max_position_embeddings": 514,
60
+ "model_type": "roberta",
61
+ "num_attention_heads": 12,
62
+ "num_hidden_layers": 12,
63
+ "pad_token_id": 1,
64
+ "position_embedding_type": "absolute",
65
+ "torch_dtype": "float32",
66
+ "transformers_version": "4.33.2",
67
+ "type_vocab_size": 1,
68
+ "use_cache": true,
69
+ "vocab_size": 52000
70
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3336f5acce2df48d4d076c0c31960b640e88f41df9cafe8497a494986c6ccb4b
3
+ size 501676841
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "bos_token": {
4
+ "__type": "AddedToken",
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false
10
+ },
11
+ "clean_up_tokenization_spaces": true,
12
+ "cls_token": {
13
+ "__type": "AddedToken",
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "eos_token": {
21
+ "__type": "AddedToken",
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": true,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ },
28
+ "errors": "replace",
29
+ "mask_token": {
30
+ "__type": "AddedToken",
31
+ "content": "<mask>",
32
+ "lstrip": true,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "max_len": 512,
38
+ "model_max_length": 512,
39
+ "pad_token": {
40
+ "__type": "AddedToken",
41
+ "content": "<pad>",
42
+ "lstrip": false,
43
+ "normalized": true,
44
+ "rstrip": false,
45
+ "single_word": false
46
+ },
47
+ "sep_token": {
48
+ "__type": "AddedToken",
49
+ "content": "</s>",
50
+ "lstrip": false,
51
+ "normalized": true,
52
+ "rstrip": false,
53
+ "single_word": false
54
+ },
55
+ "tokenizer_class": "RobertaTokenizer",
56
+ "trim_offsets": true,
57
+ "unk_token": {
58
+ "__type": "AddedToken",
59
+ "content": "<unk>",
60
+ "lstrip": false,
61
+ "normalized": true,
62
+ "rstrip": false,
63
+ "single_word": false
64
+ }
65
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b82526b27a6dc267a55ec693230527a40540df7b8e615851d154ac5a3c4b551
3
+ size 4091
vocab.json ADDED
The diff for this file is too large to render. See raw diff