dstefa/New_York_Times_Topics
Viewer • Updated • 256k • 40 • 3
How to use alex-miller/nyt-cat with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="alex-miller/nyt-cat") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("alex-miller/nyt-cat")
model = AutoModelForSequenceClassification.from_pretrained("alex-miller/nyt-cat")This model is a fine-tuned version of distilbert-base-uncased on the New York Times Topics 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 |
|---|---|---|---|---|
| 0.386 | 1.0 | 1340 | 0.3275 | 0.8921 |
| 0.2833 | 2.0 | 2680 | 0.2840 | 0.9033 |
| 0.2411 | 3.0 | 4020 | 0.2694 | 0.9102 |
| 0.2069 | 4.0 | 5360 | 0.2665 | 0.9114 |
| 0.1796 | 5.0 | 6700 | 0.2657 | 0.9128 |
| 0.1636 | 6.0 | 8040 | 0.2674 | 0.9142 |
| 0.144 | 7.0 | 9380 | 0.2761 | 0.9129 |
| 0.1277 | 8.0 | 10720 | 0.2820 | 0.9125 |
| 0.1201 | 9.0 | 12060 | 0.2853 | 0.9136 |
| 0.1104 | 10.0 | 13400 | 0.2871 | 0.9135 |
Base model
distilbert/distilbert-base-uncased