Instructions to use hhhhzy/roberta-pubhealth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hhhhzy/roberta-pubhealth with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="hhhhzy/roberta-pubhealth")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("hhhhzy/roberta-pubhealth") model = AutoModelForSequenceClassification.from_pretrained("hhhhzy/roberta-pubhealth") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Roberta-Pubhealth model
This model is a fine-tuned version of RoBERTa Base on the health_fact dataset. It achieves the following results on the evaluation set:
- micro f1 (accuracy): 0.7137
- macro f1: 0.6056
- weighted f1: 0.7106
- samples predicted per second: 9.31
Dataset desctiption
PUBHEALTHis a comprehensive dataset for explainable automated fact-checking of public health claims. Each instance in the PUBHEALTH dataset has an associated veracity label (true, false, unproven, mixture). Furthermore each instance in the dataset has an explanation text field. The explanation is a justification for which the claim has been assigned a particular veracity label.
Training hyperparameters
The model are trained with the following tuned config:
- model: roberta base
- batch size: 32
- learning rate: 5e-5
- number of epochs: 4
- warmup steps: 0
- Downloads last month
- 1