ParamDev commited on
Commit
4b731eb
·
verified ·
1 Parent(s): 49023bc

Final ClinicalBERT medical classifier push

Browse files
Files changed (2) hide show
  1. README.md +74 -0
  2. model.safetensors +1 -1
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: emilyalsentzer/Bio_ClinicalBERT
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - f1
10
+ model-index:
11
+ - name: clinicalbert-medical-doc-classifier
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
+ # clinicalbert-medical-doc-classifier
19
+
20
+ This model is a fine-tuned version of [emilyalsentzer/Bio_ClinicalBERT](https://huggingface.co/emilyalsentzer/Bio_ClinicalBERT) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.0252
23
+ - Accuracy: 0.9953
24
+ - F1: 0.9948
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 2e-05
44
+ - train_batch_size: 64
45
+ - eval_batch_size: 64
46
+ - seed: 42
47
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
48
+ - lr_scheduler_type: linear
49
+ - num_epochs: 5
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
54
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:------:|
55
+ | 0.1238 | 0.1582 | 100 | 0.1158 | 0.9757 | 0.9679 |
56
+ | 0.0966 | 0.3165 | 200 | 0.0470 | 0.9924 | 0.9912 |
57
+ | 0.0269 | 0.4747 | 300 | 0.0364 | 0.9942 | 0.9931 |
58
+ | 0.0178 | 0.6329 | 400 | 0.0336 | 0.9947 | 0.9935 |
59
+ | 0.0428 | 0.7911 | 500 | 0.0327 | 0.9940 | 0.9933 |
60
+ | 0.0062 | 0.9494 | 600 | 0.0296 | 0.9949 | 0.9937 |
61
+ | 0.0370 | 1.1076 | 700 | 0.0262 | 0.9947 | 0.9935 |
62
+ | 0.0201 | 1.2658 | 800 | 0.0279 | 0.9947 | 0.9935 |
63
+ | 0.0231 | 1.4241 | 900 | 0.0252 | 0.9953 | 0.9948 |
64
+ | 0.0193 | 1.5823 | 1000 | 0.0249 | 0.9953 | 0.9942 |
65
+ | 0.0189 | 1.7405 | 1100 | 0.0263 | 0.9951 | 0.9941 |
66
+ | 0.0201 | 1.8987 | 1200 | 0.0256 | 0.9953 | 0.9947 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 5.4.0
72
+ - Pytorch 2.11.0+cu130
73
+ - Datasets 4.8.4
74
+ - Tokenizers 0.22.2
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d7f85dc49cf36cf46c60bf4b5c6a6d243cc4c22cf11a8a79baaaae81ba2e9d32
3
  size 433295352
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0493807377cee396a1e429584e0bb2a4d3e25c08bdfdb3f4621cc0bce96e960
3
  size 433295352