alenatz commited on
Commit
2db5ea9
1 Parent(s): 31f1daf

alenatz/cause-bert-biocause

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: bert-base-cased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - f1
10
+ - accuracy
11
+ model-index:
12
+ - name: cause-bert-biocause
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
+ # cause-bert-biocause
20
+
21
+ This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on an unknown dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.4364
24
+ - Precision: 0.1647
25
+ - Recall: 0.3459
26
+ - F1: 0.2231
27
+ - Accuracy: 0.8160
28
+ - Cause P: 0.1647
29
+ - Cause R: 0.3459
30
+ - Cause F1: 0.2231
31
+
32
+ ## Model description
33
+
34
+ More information needed
35
+
36
+ ## Intended uses & limitations
37
+
38
+ More information needed
39
+
40
+ ## Training and evaluation data
41
+
42
+ More information needed
43
+
44
+ ## Training procedure
45
+
46
+ ### Training hyperparameters
47
+
48
+ The following hyperparameters were used during training:
49
+ - learning_rate: 3e-05
50
+ - train_batch_size: 8
51
+ - eval_batch_size: 8
52
+ - seed: 42
53
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
54
+ - lr_scheduler_type: linear
55
+ - num_epochs: 2
56
+
57
+ ### Training results
58
+
59
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy | Cause P | Cause R | Cause F1 |
60
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|:-------:|:-------:|:--------:|
61
+ | 0.6498 | 0.25 | 20 | 0.6248 | 0.0544 | 0.1698 | 0.0824 | 0.7705 | 0.0544 | 0.1698 | 0.0824 |
62
+ | 0.6498 | 0.5 | 40 | 0.5229 | 0.0532 | 0.1572 | 0.0795 | 0.6600 | 0.0532 | 0.1572 | 0.0795 |
63
+ | 0.6498 | 0.75 | 60 | 0.4613 | 0.1190 | 0.2327 | 0.1574 | 0.8274 | 0.1190 | 0.2327 | 0.1574 |
64
+ | 0.6498 | 1.0 | 80 | 0.4376 | 0.1460 | 0.2956 | 0.1954 | 0.8145 | 0.1460 | 0.2956 | 0.1954 |
65
+ | 0.6498 | 1.25 | 100 | 0.4660 | 0.1829 | 0.2956 | 0.2260 | 0.8312 | 0.1829 | 0.2956 | 0.2260 |
66
+ | 0.6498 | 1.5 | 120 | 0.4523 | 0.1902 | 0.3899 | 0.2557 | 0.8148 | 0.1902 | 0.3899 | 0.2557 |
67
+ | 0.6498 | 1.75 | 140 | 0.4414 | 0.1756 | 0.3711 | 0.2384 | 0.8138 | 0.1756 | 0.3711 | 0.2384 |
68
+ | 0.6498 | 2.0 | 160 | 0.4364 | 0.1647 | 0.3459 | 0.2231 | 0.8160 | 0.1647 | 0.3459 | 0.2231 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.37.2
74
+ - Pytorch 2.3.1.post100
75
+ - Datasets 2.20.0
76
+ - Tokenizers 0.15.1
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-cased",
3
+ "architectures": [
4
+ "BertForUnbalancedTokenClassification"
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": "O",
14
+ "1": "I-CAU"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "I-CAU": 1,
20
+ "O": 0
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "max_position_embeddings": 512,
24
+ "model_type": "bert",
25
+ "num_attention_heads": 12,
26
+ "num_hidden_layers": 12,
27
+ "pad_token_id": 0,
28
+ "position_embedding_type": "absolute",
29
+ "torch_dtype": "float32",
30
+ "transformers_version": "4.37.2",
31
+ "type_vocab_size": 2,
32
+ "use_cache": true,
33
+ "vocab_size": 28996
34
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:caf1046adc6fb2a1ae9edb53cb7baeb141560b9a7b9e380bf0e2dfc48380e847
3
+ size 433270744
runs/Jul12_17-59-40_ccoon/events.out.tfevents.1720799983.ccoon.637496.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:493ecd83246313379605f5f9afe8739b960ac701dd9467a5708ab2eeb5dc7334
3
+ size 4595
runs/Jul12_18-00-10_ccoon/events.out.tfevents.1720800013.ccoon.637496.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbfa2c68da2b37c943e722b3814f975a06ab8b99c29794897ca7b0b9255f6152
3
+ size 9885
runs/Jul12_18-00-10_ccoon/events.out.tfevents.1720800986.ccoon.637496.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7cc87731b38776df906d494a8d138fcdee9cfd5bcc76120d8333f98cac90588
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,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_lower_case": false,
47
+ "mask_token": "[MASK]",
48
+ "model_max_length": 512,
49
+ "pad_token": "[PAD]",
50
+ "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "BertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ba01b0c0777fb95fd9711cb48caba501e373b4277b5162c897a522452296ade
3
+ size 4664
vocab.txt ADDED
The diff for this file is too large to render. See raw diff