Downloads · 30 days
1
2% of all-time downloads
fcuadra/distilbert_classifier_newsgroups
distilbert_classifier_newsgroups is a text classification model from fcuadra. 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
1
2% of all-time downloads
All-time downloads
45
Public
Repo size
268 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 20Newsgroups dataset. It achieves the following results on the evaluation set:
We have fine-tuned the distilbert-base-uncased to classify news in 20 main topics based on the labeled dataset 20Newsgroups.
The 20 newsgroups dataset comprises around 18000 newsgroups posts on 20 topics split in two subsets: one for training (or development) and the other one for testing (or for performance evaluation). The split between the train and test set is based upon a messages posted before and after a specific date.
These are the 20 topics we fine-tuned the model on:
'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'
The following hyperparameters were used during training:
Epoch 1/3 637/637 [==============================] - 110s 131ms/step - loss: 1.3480 - accuracy: 0.6633 - val_loss: 0.6122 - val_accuracy: 0.8304 Epoch 2/3 637/637 [==============================] - 44s 70ms/step - loss: 0.4498 - accuracy: 0.8812 - val_loss: 0.4342 - val_accuracy: 0.8799 Epoch 3/3 637/637 [==============================] - 40s 64ms/step - loss: 0.2685 - accuracy: 0.9355 - val_loss: 0.3756 - val_accuracy: 0.8993 CPU times: user 3min 4s, sys: 8.76 s, total: 3min 13s Wall time: 3min 15s <keras.callbacks.History at 0x7f481afbfbb0>