Instructions to use praneethvasarla/med-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use praneethvasarla/med-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="praneethvasarla/med-bert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("praneethvasarla/med-bert") model = AutoModelForTokenClassification.from_pretrained("praneethvasarla/med-bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
a60865f
1
Parent(s): d6869d6
End of training
Browse files- README.md +29 -29
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -20,12 +20,12 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 20 |
|
| 21 |
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the None dataset.
|
| 22 |
It achieves the following results on the evaluation set:
|
| 23 |
-
- Loss:
|
| 24 |
-
- Precision: 0.
|
| 25 |
-
- Recall: 0.
|
| 26 |
-
- F1: 0.
|
| 27 |
-
- Accuracy: 0.
|
| 28 |
-
- All Metrics: {'MedicalCondition': {'precision': 0.
|
| 29 |
|
| 30 |
## Model description
|
| 31 |
|
|
@@ -44,7 +44,7 @@ More information needed
|
|
| 44 |
### Training hyperparameters
|
| 45 |
|
| 46 |
The following hyperparameters were used during training:
|
| 47 |
-
- learning_rate: 1e-
|
| 48 |
- train_batch_size: 8
|
| 49 |
- eval_batch_size: 8
|
| 50 |
- seed: 42
|
|
@@ -54,28 +54,28 @@ The following hyperparameters were used during training:
|
|
| 54 |
|
| 55 |
### Training results
|
| 56 |
|
| 57 |
-
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy | All Metrics
|
| 58 |
-
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
| 59 |
-
| No log | 1.0 | 3 | 1.
|
| 60 |
-
| No log | 2.0 | 6 | 1.
|
| 61 |
-
| No log | 3.0 | 9 | 1.
|
| 62 |
-
| No log | 4.0 | 12 | 1.
|
| 63 |
-
| No log | 5.0 | 15 |
|
| 64 |
-
| No log | 6.0 | 18 |
|
| 65 |
-
| No log | 7.0 | 21 |
|
| 66 |
-
| No log | 8.0 | 24 |
|
| 67 |
-
| No log | 9.0 | 27 |
|
| 68 |
-
| No log | 10.0 | 30 |
|
| 69 |
-
| No log | 11.0 | 33 |
|
| 70 |
-
| No log | 12.0 | 36 |
|
| 71 |
-
| No log | 13.0 | 39 |
|
| 72 |
-
| No log | 14.0 | 42 |
|
| 73 |
-
| No log | 15.0 | 45 |
|
| 74 |
-
| No log | 16.0 | 48 |
|
| 75 |
-
| No log | 17.0 | 51 |
|
| 76 |
-
| No log | 18.0 | 54 |
|
| 77 |
-
| No log | 19.0 | 57 |
|
| 78 |
-
| No log | 20.0 | 60 |
|
| 79 |
|
| 80 |
|
| 81 |
### Framework versions
|
|
|
|
| 20 |
|
| 21 |
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the None dataset.
|
| 22 |
It achieves the following results on the evaluation set:
|
| 23 |
+
- Loss: 1.9379
|
| 24 |
+
- Precision: 0.0128
|
| 25 |
+
- Recall: 0.0794
|
| 26 |
+
- F1: 0.0221
|
| 27 |
+
- Accuracy: 0.1707
|
| 28 |
+
- All Metrics: {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523}
|
| 29 |
|
| 30 |
## Model description
|
| 31 |
|
|
|
|
| 44 |
### Training hyperparameters
|
| 45 |
|
| 46 |
The following hyperparameters were used during training:
|
| 47 |
+
- learning_rate: 1e-08
|
| 48 |
- train_batch_size: 8
|
| 49 |
- eval_batch_size: 8
|
| 50 |
- seed: 42
|
|
|
|
| 54 |
|
| 55 |
### Training results
|
| 56 |
|
| 57 |
+
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy | All Metrics |
|
| 58 |
+
|:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
|
| 59 |
+
| No log | 1.0 | 3 | 1.9408 | 0.0128 | 0.0794 | 0.0220 | 0.1693 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.030927835051546393, 'recall': 0.1875, 'f1': 0.05309734513274336, 'number': 16}, 'overall_precision': 0.01278772378516624, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02202643171806167, 'overall_accuracy': 0.1692524682651622} |
|
| 60 |
+
| No log | 2.0 | 6 | 1.9405 | 0.0128 | 0.0794 | 0.0220 | 0.1693 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.030927835051546393, 'recall': 0.1875, 'f1': 0.05309734513274336, 'number': 16}, 'overall_precision': 0.01278772378516624, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02202643171806167, 'overall_accuracy': 0.1692524682651622} |
|
| 61 |
+
| No log | 3.0 | 9 | 1.9402 | 0.0128 | 0.0794 | 0.0220 | 0.1693 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.030927835051546393, 'recall': 0.1875, 'f1': 0.05309734513274336, 'number': 16}, 'overall_precision': 0.01278772378516624, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02202643171806167, 'overall_accuracy': 0.1692524682651622} |
|
| 62 |
+
| No log | 4.0 | 12 | 1.9400 | 0.0128 | 0.0794 | 0.0220 | 0.1693 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.030927835051546393, 'recall': 0.1875, 'f1': 0.05309734513274336, 'number': 16}, 'overall_precision': 0.01278772378516624, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02202643171806167, 'overall_accuracy': 0.1692524682651622} |
|
| 63 |
+
| No log | 5.0 | 15 | 1.9397 | 0.0128 | 0.0794 | 0.0220 | 0.1693 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.030927835051546393, 'recall': 0.1875, 'f1': 0.05309734513274336, 'number': 16}, 'overall_precision': 0.01278772378516624, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02202643171806167, 'overall_accuracy': 0.1692524682651622} |
|
| 64 |
+
| No log | 6.0 | 18 | 1.9395 | 0.0128 | 0.0794 | 0.0220 | 0.1693 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.030927835051546393, 'recall': 0.1875, 'f1': 0.05309734513274336, 'number': 16}, 'overall_precision': 0.01278772378516624, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02202643171806167, 'overall_accuracy': 0.1692524682651622} |
|
| 65 |
+
| No log | 7.0 | 21 | 1.9392 | 0.0128 | 0.0794 | 0.0220 | 0.1693 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.030927835051546393, 'recall': 0.1875, 'f1': 0.05309734513274336, 'number': 16}, 'overall_precision': 0.01278772378516624, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02202643171806167, 'overall_accuracy': 0.1692524682651622} |
|
| 66 |
+
| No log | 8.0 | 24 | 1.9390 | 0.0128 | 0.0794 | 0.0221 | 0.1707 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523} |
|
| 67 |
+
| No log | 9.0 | 27 | 1.9388 | 0.0128 | 0.0794 | 0.0221 | 0.1707 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523} |
|
| 68 |
+
| No log | 10.0 | 30 | 1.9387 | 0.0128 | 0.0794 | 0.0221 | 0.1707 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523} |
|
| 69 |
+
| No log | 11.0 | 33 | 1.9385 | 0.0128 | 0.0794 | 0.0221 | 0.1707 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523} |
|
| 70 |
+
| No log | 12.0 | 36 | 1.9384 | 0.0128 | 0.0794 | 0.0221 | 0.1707 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523} |
|
| 71 |
+
| No log | 13.0 | 39 | 1.9383 | 0.0128 | 0.0794 | 0.0221 | 0.1707 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523} |
|
| 72 |
+
| No log | 14.0 | 42 | 1.9382 | 0.0128 | 0.0794 | 0.0221 | 0.1707 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523} |
|
| 73 |
+
| No log | 15.0 | 45 | 1.9381 | 0.0128 | 0.0794 | 0.0221 | 0.1707 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523} |
|
| 74 |
+
| No log | 16.0 | 48 | 1.9380 | 0.0128 | 0.0794 | 0.0221 | 0.1707 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523} |
|
| 75 |
+
| No log | 17.0 | 51 | 1.9380 | 0.0128 | 0.0794 | 0.0221 | 0.1707 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523} |
|
| 76 |
+
| No log | 18.0 | 54 | 1.9379 | 0.0128 | 0.0794 | 0.0221 | 0.1707 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523} |
|
| 77 |
+
| No log | 19.0 | 57 | 1.9379 | 0.0128 | 0.0794 | 0.0221 | 0.1707 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523} |
|
| 78 |
+
| No log | 20.0 | 60 | 1.9379 | 0.0128 | 0.0794 | 0.0221 | 0.1707 | {'MedicalCondition': {'precision': 0.011428571428571429, 'recall': 0.05714285714285714, 'f1': 0.019047619047619046, 'number': 35}, 'Medicine': {'precision': 0.0, 'recall': 0.0, 'f1': 0.0, 'number': 12}, 'Pathogen': {'precision': 0.03125, 'recall': 0.1875, 'f1': 0.05357142857142857, 'number': 16}, 'overall_precision': 0.01282051282051282, 'overall_recall': 0.07936507936507936, 'overall_f1': 0.02207505518763797, 'overall_accuracy': 0.17066290550070523} |
|
| 79 |
|
| 80 |
|
| 81 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 435611468
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6668093bae0c840e05611b750f912460dfae7a1ae3baca808d839c1a795c0b4a
|
| 3 |
size 435611468
|