irenepap commited on
Commit
2d28de0
1 Parent(s): 7efb5ea

bert-base-pubmed-multilabel

Browse files
Files changed (4) hide show
  1. README.md +77 -0
  2. config.json +51 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: bert-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - f1
10
+ model-index:
11
+ - name: results
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # results
19
+
20
+ This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.2919
23
+ - Precision: 0.8957
24
+ - Recall: 0.8226
25
+ - F1: 0.8576
26
+
27
+ ## Model description
28
+
29
+ More information needed
30
+
31
+ ## Intended uses & limitations
32
+
33
+ More information needed
34
+
35
+ ## Training and evaluation data
36
+
37
+ More information needed
38
+
39
+ ## Training procedure
40
+
41
+ ### Training hyperparameters
42
+
43
+ The following hyperparameters were used during training:
44
+ - learning_rate: 0.0001
45
+ - train_batch_size: 16
46
+ - eval_batch_size: 16
47
+ - seed: 42
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: linear
50
+ - num_epochs: 10
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 |
55
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|
56
+ | 0.3611 | 0.2 | 500 | 0.3194 | 0.8640 | 0.8324 | 0.8479 |
57
+ | 0.3106 | 0.4 | 1000 | 0.3039 | 0.8905 | 0.8013 | 0.8435 |
58
+ | 0.3027 | 0.6 | 1500 | 0.2954 | 0.9022 | 0.7927 | 0.8439 |
59
+ | 0.2952 | 0.81 | 2000 | 0.2864 | 0.8966 | 0.8185 | 0.8558 |
60
+ | 0.2905 | 1.01 | 2500 | 0.2875 | 0.8973 | 0.8150 | 0.8542 |
61
+ | 0.2605 | 1.21 | 3000 | 0.2841 | 0.8924 | 0.8369 | 0.8637 |
62
+ | 0.2591 | 1.41 | 3500 | 0.2820 | 0.8926 | 0.8444 | 0.8678 |
63
+ | 0.2574 | 1.61 | 4000 | 0.2826 | 0.8916 | 0.8359 | 0.8629 |
64
+ | 0.2602 | 1.81 | 4500 | 0.2764 | 0.8989 | 0.8291 | 0.8626 |
65
+ | 0.2561 | 2.01 | 5000 | 0.2813 | 0.8891 | 0.8454 | 0.8667 |
66
+ | 0.2195 | 2.22 | 5500 | 0.2869 | 0.9072 | 0.8110 | 0.8564 |
67
+ | 0.2209 | 2.42 | 6000 | 0.2845 | 0.9002 | 0.8216 | 0.8591 |
68
+ | 0.2178 | 2.62 | 6500 | 0.2827 | 0.8991 | 0.8285 | 0.8624 |
69
+ | 0.22 | 2.82 | 7000 | 0.2919 | 0.8957 | 0.8226 | 0.8576 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 4.39.3
75
+ - Pytorch 2.1.2
76
+ - Datasets 2.18.0
77
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-uncased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
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": "LABEL_0",
14
+ "1": "LABEL_1",
15
+ "2": "LABEL_2",
16
+ "3": "LABEL_3",
17
+ "4": "LABEL_4",
18
+ "5": "LABEL_5",
19
+ "6": "LABEL_6",
20
+ "7": "LABEL_7",
21
+ "8": "LABEL_8",
22
+ "9": "LABEL_9"
23
+ },
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 3072,
26
+ "label2id": {
27
+ "LABEL_0": 0,
28
+ "LABEL_1": 1,
29
+ "LABEL_2": 2,
30
+ "LABEL_3": 3,
31
+ "LABEL_4": 4,
32
+ "LABEL_5": 5,
33
+ "LABEL_6": 6,
34
+ "LABEL_7": 7,
35
+ "LABEL_8": 8,
36
+ "LABEL_9": 9
37
+ },
38
+ "layer_norm_eps": 1e-12,
39
+ "max_position_embeddings": 512,
40
+ "model_type": "bert",
41
+ "num_attention_heads": 12,
42
+ "num_hidden_layers": 12,
43
+ "pad_token_id": 0,
44
+ "position_embedding_type": "absolute",
45
+ "problem_type": "multi_label_classification",
46
+ "torch_dtype": "float32",
47
+ "transformers_version": "4.39.3",
48
+ "type_vocab_size": 2,
49
+ "use_cache": true,
50
+ "vocab_size": 30522
51
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a06932e2c368b294627c75a9a33ecf2c4f3e9c0055f8293f86bed0ebee8143e7
3
+ size 437983256
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0ae2ea1ba18512ffd6ce823504249d54e1c08f32199ccf6231fa7d2778a8164
3
+ size 4920