Views
No views yet
| Metric | Score |
|---|---|
| F1 Score | 0.9264705882352942 |
| Precision | 0.9163636363636364 |
| Recall | 0.9368029739776952 |
| AUC-ROC | 0.9656523724050712 |
1from transformers import AutoTokenizer
2
3# Load tokenizer
4tokenizer = AutoTokenizer.from_pretrained("michiyasunaga/BioLinkBERT-base")
5tokenizer.add_special_tokens({"additional_special_tokens": ["[DRUG]", "[/DRUG]", "[ADR]", "[/ADR]"]})
6
7# Download and load the model
8from huggingface_hub import hf_hub_download
9import torch
10
11model_path = hf_hub_download(repo_id="chrisvoncsefalvay/CRAG-dual-encoder-mimicause", filename="pytorch_model.pt")
12state_dict = torch.load(model_path, map_location="cpu")| Parameter | Phase 1 (Contrastive) | Phase 2 (Classification) |
|---|---|---|
| Epochs | 5 | 8 |
| Batch Size | 64 | 64 |
| Learning Rate | 2e-5 | 2e-5 |
| Loss Function | InfoNCE (tau=0.07) | Focal (gamma=1.0, alpha=0.75) |
| Hard Negatives | 50% | - |