NHS TransformersUpdates
Collection
12 items • Updated
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="intermezzo672/NHS-roberta-binary-random")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("intermezzo672/NHS-roberta-binary-random")
model = AutoModelForSequenceClassification.from_pretrained("intermezzo672/NHS-roberta-binary-random")This model is a fine-tuned version of roberta-base on the None 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 | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 0.0996 | 1.0 | 397 | 0.4221 | 0.8088 | 0.8018 | 0.8041 | 0.8029 |
| 0.0996 | 2.0 | 794 | 0.4597 | 0.7861 | 0.7913 | 0.8009 | 0.7851 |
| 1.9859 | 3.0 | 1191 | 0.5076 | 0.7937 | 0.7920 | 0.8022 | 0.7915 |
Base model
FacebookAI/roberta-base
# Gated model: Login with a HF token with gated access permission hf auth login