Biomed-2class-NER-models
Collection
7 items โข Updated
How to use Mardiyyah/CeLLaTe-ner-2class-pubmedbert-baseline with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Mardiyyah/CeLLaTe-ner-2class-pubmedbert-baseline") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Mardiyyah/CeLLaTe-ner-2class-pubmedbert-baseline")
model = AutoModelForTokenClassification.from_pretrained("Mardiyyah/CeLLaTe-ner-2class-pubmedbert-baseline", device_map="auto")This model is a fine-tuned version of microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext on the OTAR3088/CeLLaTe-ner-2class-iob_final dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | Micro F1 | Weighted F1 | Macro F1 | Accuracy |
|---|---|---|---|---|---|---|---|---|---|
| 0.2498 | 1.0 | 263 | 0.0637 | 0.6194 | 0.7517 | 0.6792 | 0.6827 | 0.7051 | 0.9791 |
| 0.0412 | 2.0 | 526 | 0.0568 | 0.7413 | 0.7114 | 0.7260 | 0.7269 | 0.7388 | 0.9823 |
| 0.0268 | 3.0 | 789 | 0.0633 | 0.7183 | 0.6785 | 0.6978 | 0.6978 | 0.6973 | 0.9809 |
| 0.0199 | 4.0 | 1052 | 0.0655 | 0.7478 | 0.7200 | 0.7336 | 0.7345 | 0.7464 | 0.9826 |
| 0.0148 | 5.0 | 1315 | 0.0713 | 0.7721 | 0.7029 | 0.7359 | 0.7358 | 0.7406 | 0.9828 |
| 0.0119 | 6.0 | 1578 | 0.0724 | 0.7591 | 0.7364 | 0.7476 | 0.7480 | 0.7569 | 0.9833 |
| 0.0091 | 7.0 | 1841 | 0.0867 | 0.7860 | 0.7218 | 0.7525 | 0.7526 | 0.7613 | 0.9833 |
| 0.0069 | 8.0 | 2104 | 0.0818 | 0.7921 | 0.7254 | 0.7573 | 0.7572 | 0.7670 | 0.9837 |
| 0.006 | 9.0 | 2367 | 0.0875 | 0.7624 | 0.7437 | 0.7529 | 0.7531 | 0.7587 | 0.9838 |
| 0.0048 | 10.0 | 2630 | 0.0919 | 0.7849 | 0.7126 | 0.7470 | 0.7471 | 0.7547 | 0.9831 |
| 0.0044 | 11.0 | 2893 | 0.0941 | 0.7755 | 0.7248 | 0.7493 | 0.7497 | 0.7613 | 0.9835 |
| 0.0035 | 12.0 | 3156 | 0.0996 | 0.7763 | 0.7431 | 0.7594 | 0.7596 | 0.7690 | 0.9838 |
| 0.0029 | 13.0 | 3419 | 0.0985 | 0.7498 | 0.7462 | 0.7480 | 0.7487 | 0.7596 | 0.9832 |
| 0.0028 | 14.0 | 3682 | 0.1044 | 0.7579 | 0.7010 | 0.7284 | 0.7285 | 0.7330 | 0.9827 |
| 0.0025 | 15.0 | 3945 | 0.1053 | 0.7613 | 0.7297 | 0.7452 | 0.7454 | 0.7517 | 0.9832 |
| 0.0024 | 16.0 | 4208 | 0.1024 | 0.7551 | 0.7395 | 0.7472 | 0.7474 | 0.7517 | 0.9834 |
| 0.0021 | 17.0 | 4471 | 0.1128 | 0.7843 | 0.7120 | 0.7464 | 0.7465 | 0.7579 | 0.9831 |