NazzX1 commited on
Commit
d1e233c
·
verified ·
1 Parent(s): 23fac83

bert-section-classification-v5

Browse files
Files changed (4) hide show
  1. README.md +71 -0
  2. config.json +37 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: medicalai/ClinicalBERT
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - precision
9
+ - recall
10
+ - f1
11
+ model-index:
12
+ - name: bert-section-classification-v5
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-section-classification-v5
20
+
21
+ This model is a fine-tuned version of [medicalai/ClinicalBERT](https://huggingface.co/medicalai/ClinicalBERT) on an unknown dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.9710
24
+ - Accuracy: 0.8644
25
+ - Precision: 0.8671
26
+ - Recall: 0.8644
27
+ - F1: 0.8642
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: 4
48
+ - eval_batch_size: 4
49
+ - seed: 42
50
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
51
+ - lr_scheduler_type: linear
52
+ - lr_scheduler_warmup_steps: 300
53
+ - num_epochs: 6
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
58
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
59
+ | No log | 1.0 | 370 | 1.3245 | 0.2555 | 0.3090 | 0.2555 | 0.1199 |
60
+ | 1.3542 | 2.0 | 740 | 1.2024 | 0.7319 | 0.8115 | 0.7319 | 0.7163 |
61
+ | 1.2122 | 3.0 | 1110 | 1.1008 | 0.8675 | 0.8756 | 0.8675 | 0.8678 |
62
+ | 1.2122 | 4.0 | 1480 | 1.0275 | 0.8770 | 0.8834 | 0.8770 | 0.8773 |
63
+ | 1.082 | 5.0 | 1850 | 0.9855 | 0.8707 | 0.8751 | 0.8707 | 0.8706 |
64
+ | 1.003 | 6.0 | 2220 | 0.9710 | 0.8644 | 0.8671 | 0.8644 | 0.8642 |
65
+
66
+
67
+ ### Framework versions
68
+
69
+ - Transformers 4.51.3
70
+ - Pytorch 2.6.0+cu124
71
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation": "gelu",
3
+ "architectures": [
4
+ "DistilBertForSequenceClassification"
5
+ ],
6
+ "attention_dropout": 0.1,
7
+ "dim": 768,
8
+ "dropout": 0.1,
9
+ "hidden_dim": 3072,
10
+ "id2label": {
11
+ "0": "Chief Concern and History",
12
+ "1": "Clinical Findings",
13
+ "2": "Diagnostic Results",
14
+ "3": "Past Health and Social History"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "label2id": {
18
+ "Chief Concern and History": 0,
19
+ "Clinical Findings": 1,
20
+ "Diagnostic Results": 2,
21
+ "Past Health and Social History": 3
22
+ },
23
+ "max_position_embeddings": 512,
24
+ "model_type": "distilbert",
25
+ "n_heads": 12,
26
+ "n_layers": 6,
27
+ "output_past": true,
28
+ "pad_token_id": 0,
29
+ "problem_type": "single_label_classification",
30
+ "qa_dropout": 0.1,
31
+ "seq_classif_dropout": 0.2,
32
+ "sinusoidal_pos_embds": false,
33
+ "tie_weights_": true,
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.51.3",
36
+ "vocab_size": 119547
37
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fc607ad25cac6f8be80ec0513288ac582a9d9fa16c828ba6706cdf70ddf2a92
3
+ size 541323528
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c0ecee4aab9c89c7fe4c99487e427dcce33c4727106cfa1a7c9c4a2635d5ffc
3
+ size 5304