devinitorg/iati-policy-markers
Viewer • Updated • 896k • 103
How to use alex-miller/iati-drr-classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="alex-miller/iati-drr-classifier") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("alex-miller/iati-drr-classifier")
model = AutoModelForSequenceClassification.from_pretrained("alex-miller/iati-drr-classifier")This model is a fine-tuned version of alex-miller/ODABert on a subset of the alex-miller/iati-policy-markers dataset. It achieves the following results on the evaluation set:
This model has been trained to identify disaster risk reduction (DRR) project titles and/or descriptions. It returns "0" for projects with no DRR component, and "1" for projects with DRR as a principal or significant objective.
More information needed
More information needed
Code to subset the dataset and train the model is available here.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.607 | 1.0 | 508 | 0.5053 | 0.7507 |
| 0.4569 | 2.0 | 1016 | 0.4289 | 0.7980 |
| 0.4011 | 3.0 | 1524 | 0.4009 | 0.8143 |
| 0.3786 | 4.0 | 2032 | 0.3910 | 0.8207 |
Base model
google-bert/bert-base-multilingual-uncased