Downloads · 30 days
7
1% of all-time downloads
rjac/bert-20news-classification
bert-20news-classification is a text classification model from rjac. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
probably proofread and complete it, then remove this comment. --
Downloads · 30 days
7
1% of all-time downloads
All-time downloads
820
Public
Repo size
804 MB
Likes
0
Public
Click a slice to open those files.
.h5268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of distilbert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:
This model is a fine-tuned version of the DistilBERT model for sequence classification tasks. It was trained using Hugging Face's transformers and TensorFlow. The model expects input sequences to be tokenized according to the DistilBERT's tokenizer.
The model was trained specifically for classifying text into 20 different categories derived from the 20 Newsgroups dataset. These categories include various topics such as 'alt.atheism', 'comp.graphics', 'comp.os.ms-windows.misc', 'comp.sys.ibm.pc.hardware', 'comp.sys.mac.hardware', 'comp.windows.x', 'misc.forsale', 'rec.autos', 'rec.motorcycles', 'rec.sport.baseball', 'rec.sport.hockey', 'sci.crypt', 'sci.electronics', 'sci.med', 'sci.space', 'soc.religion.christian', 'talk.politics.guns', 'talk.politics.mideast', 'talk.politics.misc', 'talk.religion.misc'.
This model is intended for classifying text into the above mentioned 20 categories. It can be used for categorizing text data from similar domains or topics.
the model was trained on 90% of the data from the 20 Newsgroups dataset, with the remaining 10% used for validation.
The following hyperparameters were used during training:
| Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Epoch |
|---|---|---|---|---|
| 1.8498 | 0.5829 | 0.9285 | 0.8012 | 0 |
| 0.6611 | 0.8406 | 0.4800 | 0.8807 | 1 |
| 0.3563 | 0.9128 | 0.3829 | 0.9002 | 2 |
| 0.2276 | 0.9475 | 0.3593 | 0.9072 | 3 |
| 0.1544 | 0.9659 | 0.3205 | 0.9214 | 4 |
| 0.1094 | 0.9779 | 0.3007 | 0.9214 | 5 |
| 0.0825 | 0.9846 | 0.2821 | 0.9258 | 6 |
| 0.0634 | 0.9895 | 0.2754 | 0.9337 | 7 |
| 0.0533 | 0.9916 | 0.2707 | 0.9337 | 8 |
| 0.0479 | 0.9922 | 0.2769 | 0.9284 | 9 |