Downloads · 30 days
11
24% of all-time downloads
kitrofimov/news-clf
news-clf is a text classification model from kitrofimov. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
Classifies English-language news into 4 categories: world, sports, business, and science / technology.
Downloads · 30 days
11
24% of all-time downloads
All-time downloads
45
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Classifies English-language news into 4 categories: world, sports, business, and science / technology.
Fine-tuned version of distilbert/distilbert-base-uncased on fancyzhx/ag_news, trained for 3 epochs with 128 token truncation.
It achieves the following results on the evaluation set:
Made as a homework project for 4th lesson of the FastAI's Practical Deep Learning for Coders course. Hugging Face Spaces demo available here.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.2009 | 1.0 | 938 | 0.1998 | 0.9307 |
| 0.1773 | 2.0 | 1876 | 0.1804 | 0.9375 |
| 0.1418 | 3.0 | 2814 | 0.1759 | 0.9414 |