Update README.md
Browse files
README.md
CHANGED
|
@@ -1,41 +1,30 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
license:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
| 7 |
metrics:
|
| 8 |
- accuracy
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
---
|
| 13 |
|
| 14 |
-
|
| 15 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
- Loss: 0.1759
|
| 22 |
- Accuracy: 0.9414
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
##
|
| 29 |
-
|
| 30 |
-
More information needed
|
| 31 |
-
|
| 32 |
-
## Training and evaluation data
|
| 33 |
-
|
| 34 |
-
More information needed
|
| 35 |
-
|
| 36 |
-
## Training procedure
|
| 37 |
-
|
| 38 |
-
### Training hyperparameters
|
| 39 |
|
| 40 |
The following hyperparameters were used during training:
|
| 41 |
- learning_rate: 1e-05
|
|
@@ -46,7 +35,7 @@ The following hyperparameters were used during training:
|
|
| 46 |
- lr_scheduler_type: linear
|
| 47 |
- num_epochs: 3
|
| 48 |
|
| 49 |
-
##
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 52 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
|
@@ -54,8 +43,7 @@ The following hyperparameters were used during training:
|
|
| 54 |
| 0.1773 | 2.0 | 1876 | 0.1804 | 0.9375 |
|
| 55 |
| 0.1418 | 3.0 | 2814 | 0.1759 | 0.9414 |
|
| 56 |
|
| 57 |
-
|
| 58 |
-
### Framework versions
|
| 59 |
|
| 60 |
- Transformers 4.56.1
|
| 61 |
- Pytorch 2.8.0+cu126
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
license: mit
|
| 4 |
+
datasets:
|
| 5 |
+
- fancyzhx/ag_news
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
metrics:
|
| 9 |
- accuracy
|
| 10 |
+
base_model:
|
| 11 |
+
- distilbert/distilbert-base-uncased
|
| 12 |
+
pipeline_tag: text-classification
|
| 13 |
---
|
| 14 |
|
| 15 |
+
Classifies English-language news into 4 categories: world, sports, business, and science / technology.
|
|
|
|
| 16 |
|
| 17 |
+
Fine-tuned version of `distilbert/distilbert-base-uncased` on `fancyzhx/ag_news`, trained for 3 epochs with 128 token truncation.
|
| 18 |
|
|
|
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
- Loss: 0.1759
|
| 21 |
- Accuracy: 0.9414
|
| 22 |
|
| 23 |
+
Made as a homework project for 4th lesson of the [FastAI's Practical Deep Learning for Coders course](https://course.fast.ai/). Hugging Face Spaces demo available [here](https://huggingface.co/spaces/kitrofimov/news-classifier).
|
| 24 |
|
| 25 |
+
# Training procedure
|
| 26 |
|
| 27 |
+
## Training hyperparameters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
The following hyperparameters were used during training:
|
| 30 |
- learning_rate: 1e-05
|
|
|
|
| 35 |
- lr_scheduler_type: linear
|
| 36 |
- num_epochs: 3
|
| 37 |
|
| 38 |
+
## Training results
|
| 39 |
|
| 40 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 41 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
|
|
|
| 43 |
| 0.1773 | 2.0 | 1876 | 0.1804 | 0.9375 |
|
| 44 |
| 0.1418 | 3.0 | 2814 | 0.1759 | 0.9414 |
|
| 45 |
|
| 46 |
+
## Framework versions
|
|
|
|
| 47 |
|
| 48 |
- Transformers 4.56.1
|
| 49 |
- Pytorch 2.8.0+cu126
|