NazzX1 commited on
Commit
2503ef7
·
verified ·
1 Parent(s): 33a4e36

End of training

Browse files
Files changed (4) hide show
  1. README.md +68 -0
  2. config.json +36 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: section-classification
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
+ # section-classification
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: 1.2353
24
+ - Accuracy: 0.7392
25
+ - Precision: 0.6439
26
+ - Recall: 0.7392
27
+ - F1: 0.6845
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: 2e-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
+ - num_epochs: 4
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
57
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
58
+ | No log | 1.0 | 434 | 1.2791 | 0.6882 | 0.6056 | 0.6882 | 0.6399 |
59
+ | 1.3149 | 2.0 | 868 | 1.2669 | 0.7204 | 0.6216 | 0.7204 | 0.6674 |
60
+ | 1.2335 | 3.0 | 1302 | 1.2441 | 0.7419 | 0.6477 | 0.7419 | 0.6869 |
61
+ | 1.2607 | 4.0 | 1736 | 1.2353 | 0.7392 | 0.6439 | 0.7392 | 0.6845 |
62
+
63
+
64
+ ### Framework versions
65
+
66
+ - Transformers 4.51.3
67
+ - Pytorch 2.6.0+cu124
68
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "qa_dropout": 0.1,
30
+ "seq_classif_dropout": 0.2,
31
+ "sinusoidal_pos_embds": false,
32
+ "tie_weights_": true,
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.51.3",
35
+ "vocab_size": 119547
36
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac26b68e27ac289a68d1e22125ec16606468b737dbb485bf7adc0d84552cb321
3
+ size 541323528
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bd43767d9dce419aa8608c10653c91f7356e940de561c31b0fe31f5546b3565
3
+ size 5304