alenatz commited on
Commit
00bb4f5
1 Parent(s): c4a1f20

alenatz/BERT-BioCause-oversample

Browse files
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: bert-because-trainer-oversample
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
+ # bert-because-trainer-oversample
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.3274
24
+ - Accuracy: 0.8972
25
+ - F1: 0.8299
26
+ - Recall: 0.8342
27
+ - Precision: 0.8256
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: 5e-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: 1
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Recall | Precision |
57
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:------:|:---------:|
58
+ | 0.6383 | 0.07 | 25 | 0.5128 | 0.7461 | 0.2882 | 0.1710 | 0.9167 |
59
+ | 0.5933 | 0.15 | 50 | 0.5335 | 0.7352 | 0.6545 | 0.8342 | 0.5385 |
60
+ | 0.4774 | 0.22 | 75 | 0.4369 | 0.8131 | 0.5804 | 0.4301 | 0.8925 |
61
+ | 0.4801 | 0.3 | 100 | 0.3538 | 0.8458 | 0.7429 | 0.7409 | 0.7448 |
62
+ | 0.3765 | 0.37 | 125 | 0.3890 | 0.8536 | 0.7267 | 0.6477 | 0.8278 |
63
+ | 0.3411 | 0.45 | 150 | 0.4052 | 0.8474 | 0.7710 | 0.8549 | 0.7021 |
64
+ | 0.2802 | 0.52 | 175 | 0.3509 | 0.8660 | 0.7701 | 0.7461 | 0.7956 |
65
+ | 0.2558 | 0.59 | 200 | 0.4704 | 0.8629 | 0.7179 | 0.5803 | 0.9412 |
66
+ | 0.4603 | 0.67 | 225 | 0.3298 | 0.8801 | 0.7968 | 0.7824 | 0.8118 |
67
+ | 0.3211 | 0.74 | 250 | 0.3053 | 0.8925 | 0.8189 | 0.8083 | 0.8298 |
68
+ | 0.2475 | 0.82 | 275 | 0.3052 | 0.8879 | 0.8209 | 0.8549 | 0.7895 |
69
+ | 0.2644 | 0.89 | 300 | 0.3688 | 0.8910 | 0.8077 | 0.7617 | 0.8596 |
70
+ | 0.3206 | 0.96 | 325 | 0.3332 | 0.8988 | 0.8320 | 0.8342 | 0.8299 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.37.2
76
+ - Pytorch 2.3.1
77
+ - Datasets 2.19.1
78
+ - Tokenizers 0.15.1
config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "problem_type": "single_label_classification",
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.37.2",
24
+ "type_vocab_size": 2,
25
+ "use_cache": true,
26
+ "vocab_size": 28996
27
+ }
logs/events.out.tfevents.1719993888.Alenas-MacBook-Pro-2.local.15819.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6d0ba3430e4e0c8d8191e2445a1d23ff2191afb62c4cebb1fcb9f999a8ed5da
3
+ size 12827
logs/events.out.tfevents.1719994089.Alenas-MacBook-Pro-2.local.15819.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64d78f835d8894f864193f6f0225adeecb4f6408e17ed7332f8bb65c42c45361
3
+ size 560
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d760c7aabde399496aa7a4033d4107c3dced2e513e17765032eedb153804700
3
+ size 433270768
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db9c46363a9a490b71296f62ffc7c8d51f329e9db5b36f694fca2767e0bba9e0
3
+ size 4664