alenatz commited on
Commit
4fa7b23
1 Parent(s): 470d0e8

alenatz/BioBERT-BioCause

Browse files
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: bert-base-cased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - f1
9
+ - recall
10
+ - precision
11
+ model-index:
12
+ - name: biobert-biocause-trainer
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
+ # biobert-biocause-trainer
20
+
21
+ This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on the None dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.1681
24
+ - Accuracy: 0.9485
25
+ - F1: 0.9040
26
+ - Recall: 0.9511
27
+ - Precision: 0.8614
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: 3e-05
47
+ - train_batch_size: 8
48
+ - eval_batch_size: 8
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 2
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Recall | Precision |
57
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:------:|:---------:|
58
+ | 0.6094 | 0.16 | 50 | 0.5106 | 0.7701 | 0.6246 | 0.7492 | 0.5355 |
59
+ | 0.5744 | 0.32 | 100 | 0.4291 | 0.8132 | 0.6898 | 0.8139 | 0.5986 |
60
+ | 0.5282 | 0.48 | 150 | 0.3735 | 0.7963 | 0.6995 | 0.9290 | 0.5610 |
61
+ | 0.4704 | 0.64 | 200 | 0.4850 | 0.8965 | 0.7724 | 0.6877 | 0.8808 |
62
+ | 0.4809 | 0.8 | 250 | 0.2955 | 0.9074 | 0.8192 | 0.8218 | 0.8166 |
63
+ | 0.3985 | 0.96 | 300 | 0.2699 | 0.8829 | 0.8014 | 0.9259 | 0.7064 |
64
+ | 0.347 | 1.13 | 350 | 0.2695 | 0.9275 | 0.8587 | 0.8628 | 0.8547 |
65
+ | 0.3729 | 1.29 | 400 | 0.2227 | 0.9320 | 0.8723 | 0.9101 | 0.8374 |
66
+ | 0.4059 | 1.45 | 450 | 0.2130 | 0.9420 | 0.8894 | 0.9132 | 0.8668 |
67
+ | 0.3023 | 1.61 | 500 | 0.1996 | 0.9477 | 0.8989 | 0.9117 | 0.8865 |
68
+ | 0.2676 | 1.77 | 550 | 0.1814 | 0.9521 | 0.9074 | 0.9196 | 0.8955 |
69
+ | 0.4202 | 1.93 | 600 | 0.1702 | 0.9452 | 0.8987 | 0.9511 | 0.8517 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 4.37.2
75
+ - Pytorch 2.3.1
76
+ - Datasets 2.19.1
77
+ - Tokenizers 0.15.1
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-cased",
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
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.37.2",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 28996
26
+ }
logs/events.out.tfevents.1719902954.Alenas-MacBook-Pro-2.local.29817.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1ea54cc02e7679e6ffef27581f0522c5bc7ea790a479de4381cadbbe9863bf7
3
+ size 12211
logs/events.out.tfevents.1719903868.Alenas-MacBook-Pro-2.local.29817.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9303673dd3de0e189e3b70663edb2c5f7295cdf486b4e813124fa22b47d3f261
3
+ size 560
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d157e2dfda5ce668b3133110784fb19fdb78104f0592a8e415fd96fc3cfc3c7
3
+ size 433270768
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41282d2c2b667eab21f9cc6764ef8466b253e65e22e4b39d8f63068c335ad295
3
+ size 4664