alenatz/cause-biobert-biocause
Browse files- README.md +75 -0
- config.json +33 -0
- model.safetensors +3 -0
- runs/Jul12_21-03-26_ccoon/events.out.tfevents.1720811009.ccoon.6644.0 +3 -0
- runs/Jul12_21-04-52_ccoon/events.out.tfevents.1720811094.ccoon.6644.1 +3 -0
- runs/Jul12_21-08-54_ccoon/events.out.tfevents.1720811334.ccoon.7185.0 +3 -0
- runs/Jul12_21-08-54_ccoon/events.out.tfevents.1720811900.ccoon.7185.1 +3 -0
- runs/Jul12_21-20-42_ccoon/events.out.tfevents.1720812043.ccoon.7539.0 +3 -0
- runs/Jul12_21-20-42_ccoon/events.out.tfevents.1720812606.ccoon.7539.1 +3 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: dmis-lab/biobert-base-cased-v1.2
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
metrics:
|
6 |
+
- precision
|
7 |
+
- recall
|
8 |
+
- f1
|
9 |
+
- accuracy
|
10 |
+
model-index:
|
11 |
+
- name: cause-biobert-biocause
|
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 |
+
# cause-biobert-biocause
|
19 |
+
|
20 |
+
This model is a fine-tuned version of [dmis-lab/biobert-base-cased-v1.2](https://huggingface.co/dmis-lab/biobert-base-cased-v1.2) on an unknown dataset.
|
21 |
+
It achieves the following results on the evaluation set:
|
22 |
+
- Loss: 0.5157
|
23 |
+
- Precision: 0.2230
|
24 |
+
- Recall: 0.4277
|
25 |
+
- F1: 0.2931
|
26 |
+
- Accuracy: 0.8241
|
27 |
+
- Cause P: 0.2230
|
28 |
+
- Cause R: 0.4277
|
29 |
+
- Cause F1: 0.2931
|
30 |
+
|
31 |
+
## Model description
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Intended uses & limitations
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Training and evaluation data
|
40 |
+
|
41 |
+
More information needed
|
42 |
+
|
43 |
+
## Training procedure
|
44 |
+
|
45 |
+
### Training hyperparameters
|
46 |
+
|
47 |
+
The following hyperparameters were used during training:
|
48 |
+
- learning_rate: 3e-05
|
49 |
+
- train_batch_size: 8
|
50 |
+
- eval_batch_size: 8
|
51 |
+
- seed: 42
|
52 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
53 |
+
- lr_scheduler_type: linear
|
54 |
+
- num_epochs: 2
|
55 |
+
|
56 |
+
### Training results
|
57 |
+
|
58 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy | Cause P | Cause R | Cause F1 |
|
59 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|:-------:|:-------:|:--------:|
|
60 |
+
| 0.6993 | 0.25 | 20 | 0.6314 | 0.0556 | 0.1698 | 0.0837 | 0.7587 | 0.0556 | 0.1698 | 0.0837 |
|
61 |
+
| 0.6993 | 0.5 | 40 | 0.5747 | 0.0826 | 0.2327 | 0.1219 | 0.6524 | 0.0826 | 0.2327 | 0.1219 |
|
62 |
+
| 0.6993 | 0.75 | 60 | 0.4896 | 0.1086 | 0.3899 | 0.1699 | 0.7420 | 0.1086 | 0.3899 | 0.1699 |
|
63 |
+
| 0.6993 | 1.0 | 80 | 0.4554 | 0.1497 | 0.3145 | 0.2028 | 0.7840 | 0.1497 | 0.3145 | 0.2028 |
|
64 |
+
| 0.6993 | 1.25 | 100 | 0.4952 | 0.1980 | 0.3774 | 0.2597 | 0.8353 | 0.1980 | 0.3774 | 0.2597 |
|
65 |
+
| 0.6993 | 1.5 | 120 | 0.4837 | 0.1749 | 0.3774 | 0.2390 | 0.7984 | 0.1749 | 0.3774 | 0.2390 |
|
66 |
+
| 0.6993 | 1.75 | 140 | 0.4786 | 0.1873 | 0.4088 | 0.2569 | 0.7991 | 0.1873 | 0.4088 | 0.2569 |
|
67 |
+
| 0.6993 | 2.0 | 160 | 0.5157 | 0.2230 | 0.4277 | 0.2931 | 0.8241 | 0.2230 | 0.4277 | 0.2931 |
|
68 |
+
|
69 |
+
|
70 |
+
### Framework versions
|
71 |
+
|
72 |
+
- Transformers 4.37.2
|
73 |
+
- Pytorch 2.3.1.post100
|
74 |
+
- Datasets 2.20.0
|
75 |
+
- Tokenizers 0.15.1
|
config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "dmis-lab/biobert-base-cased-v1.2",
|
3 |
+
"architectures": [
|
4 |
+
"BertForUnbalancedTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "O",
|
13 |
+
"1": "I-CAU"
|
14 |
+
},
|
15 |
+
"initializer_range": 0.02,
|
16 |
+
"intermediate_size": 3072,
|
17 |
+
"label2id": {
|
18 |
+
"I-CAU": 1,
|
19 |
+
"O": 0
|
20 |
+
},
|
21 |
+
"layer_norm_eps": 1e-12,
|
22 |
+
"max_position_embeddings": 512,
|
23 |
+
"model_type": "bert",
|
24 |
+
"num_attention_heads": 12,
|
25 |
+
"num_hidden_layers": 12,
|
26 |
+
"pad_token_id": 0,
|
27 |
+
"position_embedding_type": "absolute",
|
28 |
+
"torch_dtype": "float32",
|
29 |
+
"transformers_version": "4.37.2",
|
30 |
+
"type_vocab_size": 2,
|
31 |
+
"use_cache": true,
|
32 |
+
"vocab_size": 28996
|
33 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:19c755fcb09586ae871e1a02f171a50450ff7d84d3ca11754b46171811f07d9a
|
3 |
+
size 433270744
|
runs/Jul12_21-03-26_ccoon/events.out.tfevents.1720811009.ccoon.6644.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9cac1a2813c406952d19c411133a23cebbd36975ac900736118ed7172a7b3f07
|
3 |
+
size 5200
|
runs/Jul12_21-04-52_ccoon/events.out.tfevents.1720811094.ccoon.6644.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ab6823a468dd4ef42fc2f4950712b6753a0418c71b716d88fd2b23b5b4cb7f2
|
3 |
+
size 4586
|
runs/Jul12_21-08-54_ccoon/events.out.tfevents.1720811334.ccoon.7185.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ca95f12873b2b2017fad1427af3b8e797c4d14725bd4d8cf697d42a26c7677c8
|
3 |
+
size 9876
|
runs/Jul12_21-08-54_ccoon/events.out.tfevents.1720811900.ccoon.7185.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:34ced48948a17662fa4de2582b5d5ff35c3e5329c5a8b4f15e13d9bc20a563eb
|
3 |
+
size 1340
|
runs/Jul12_21-20-42_ccoon/events.out.tfevents.1720812043.ccoon.7539.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:974e7d1deac93b901ec77ba1e164124933a0203fc37b9c01452c4968c2bc470e
|
3 |
+
size 9876
|
runs/Jul12_21-20-42_ccoon/events.out.tfevents.1720812606.ccoon.7539.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e6c610ca24cae78e7ebe15a98040ffcb0fa7b99a9e8cbbc595d88e06f703026
|
3 |
+
size 714
|
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,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_basic_tokenize": true,
|
47 |
+
"do_lower_case": true,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"model_max_length": 1000000000000000019884624838656,
|
50 |
+
"never_split": null,
|
51 |
+
"pad_token": "[PAD]",
|
52 |
+
"sep_token": "[SEP]",
|
53 |
+
"strip_accents": null,
|
54 |
+
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "BertTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7a755832214ec96c767914859e54d886c33cee24d23b6eaded9ba914025fe95a
|
3 |
+
size 4664
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|