Downloads · 30 days
38
52% of all-time downloads
Noor-Khan/learn_hf_food_not_food_text_classifier-distilbert-base-uncased
learn_hf_food_not_food_text_classifier-distilbert-base-uncased is a text classification model from Noor-Khan. 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.
This model is a fine-tuned version of distilbert/distilbert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set: - Loss: 0.0005 - Accuracy: 1.0
Downloads · 30 days
38
52% of all-time downloads
All-time downloads
73
Public
Parameters
67M
268 MB on disk
Likes
1
Trending 1
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of distilbert/distilbert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:
This model is a fine-tuned version of distilbert-base-uncased for binary text classification: it predicts whether a piece of text is about food or not. It was built by Noorullah Zamindar, AI Engineer & Data Scientist, as a learning project to practice fine-tuning a transformer classifier with Hugging Face Transformers. On the held-out evaluation set it reports a loss of 0.0005 and an accuracy of 1.0.
Intended use: classifying short English text as food-related or not — for example, sorting food mentions in reviews, messages, or lists. This is a small learning project, not a production system. Limitations: it was trained on a small dataset (about 224 examples per epoch), so it may not generalize to new phrasings or domains; the reported 1.0 evaluation accuracy reflects the small held-out set and should not be read as perfect performance on unseen text. It handles English text only (distilbert-base-uncased).
The training data details were not recorded when this model was published. The model was trained to distinguish food-related text from non-food text over 10 epochs (see the training hyperparameters and results below). Dataset details will be added here once confirmed.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.4117 | 1.0 | 7 | 0.0805 | 1.0 |
| 0.0344 | 2.0 | 14 | 0.0078 | 1.0 |
| 0.0052 | 3.0 | 21 | 0.0026 | 1.0 |
| 0.0022 | 4.0 | 28 | 0.0013 | 1.0 |
| 0.0013 | 5.0 | 35 | 0.0009 | 1.0 |
| 0.0010 | 6.0 | 42 | 0.0007 | 1.0 |
| 0.0008 | 7.0 | 49 | 0.0006 | 1.0 |
| 0.0008 | 8.0 | 56 | 0.0006 | 1.0 |
| 0.0007 | 9.0 | 63 | 0.0006 | 1.0 |
| 0.0007 | 10.0 | 70 | 0.0005 | 1.0 |