opentargets/clinical_trial_reason_to_stop
Viewer • Updated • 3.75k • 33 • 12
How to use opentargets/clinical_trial_stop_reasons with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="opentargets/clinical_trial_stop_reasons") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("opentargets/clinical_trial_stop_reasons")
model = AutoModelForSequenceClassification.from_pretrained("opentargets/clinical_trial_stop_reasons")This model is a fine-tuned version of bert-base-uncased on the task of classification of why a clinical trial has stopped early.
The dataset containing 3,747 manually curated reasons used for fine-tuning is available in the Hub.
More details on the model training are available in the GitHub project (link) and in the associated publication (DOI: 10.1038/s41588-024-01854-z).
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy Thresh |
|---|---|---|---|---|
| No log | 1.0 | 106 | 0.1824 | 0.9475 |
| No log | 2.0 | 212 | 0.1339 | 0.9630 |
| No log | 3.0 | 318 | 0.1109 | 0.9689 |
| No log | 4.0 | 424 | 0.0988 | 0.9741 |
| 0.1439 | 5.0 | 530 | 0.0943 | 0.9743 |
| 0.1439 | 6.0 | 636 | 0.0891 | 0.9763 |
| 0.1439 | 7.0 | 742 | 0.0899 | 0.9760 |
Base model
google-bert/bert-base-uncased