fancyzhx/ag_news
Viewer โข Updated โข 128k โข 122k โข 189
How to use shed-e/ag_news-Classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="shed-e/ag_news-Classification") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("shed-e/ag_news-Classification")
model = AutoModelForSequenceClassification.from_pretrained("shed-e/ag_news-Classification")This model is a fine-tuned version of prajjwal1/bert-tiny on the ag_news 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 | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.2783 | 1.0 | 625 | 0.3046 | 0.8949 | 0.8960 | 0.8970 | 0.8963 |
| 0.1878 | 2.0 | 1250 | 0.3139 | 0.8954 | 0.8971 | 0.8995 | 0.8965 |
| 0.1311 | 3.0 | 1875 | 0.3320 | 0.8951 | 0.8964 | 0.8978 | 0.8965 |