Downloads · 30 days
27
1% of all-time downloads
mahwizzzz/UrduClassification
UrduClassification is a text classification model from mahwizzzz. 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.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
27
1% of all-time downloads
All-time downloads
5K
Public
Parameters
126M
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin504 MB · 50%
How the weights are stored.
F32126M · 100%
From the Hugging Face model README
This model is a fine-tuned version of urduhack/roberta-urdu-small on the imdb_urdu_reviews dataset. It achieves the following results on the evaluation set:
The model was fine-tuned using the transformers library and the Trainer class from Hugging Face. The training process involved the following steps:
Tokenization: The input Urdu text was tokenized using the RobertaTokenizerFast from the "urduhack/roberta-urdu-small" pre-trained model. The texts were padded and truncated to a maximum length of 256 tokens.
Model Architecture: The "urduhack/roberta-urdu-small" pre-trained model was loaded as the base model for sequence classification using the RobertaForSequenceClassification class.
Training Arguments: The training arguments were set, including the number of training epochs, batch size, learning rate, evaluation strategy, logging strategy, and more.
Training: The model was trained on the training dataset using the Trainer class. The training process was performed with gradient-based optimization techniques to minimize the cross-entropy loss between predicted and actual sentiment labels.
Evaluation: After each epoch, the model was evaluated on the validation dataset to monitor its performance. The evaluation results, including training loss and validation loss, were logged for analysis.
Fine-Tuning: The model parameters were fine-tuned during the training process to optimize its performance on the IMDb Urdu movie reviews sentiment analysis task.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.4078 | 1.0 | 2500 | 0.3954 |
| 0.2633 | 2.0 | 5000 | 0.4007 |
| 0.1205 | 3.0 | 7500 | 0.4703 |
The model was evaluated on an undisclosed dataset using a language modeling task. The evaluation results after 3 epochs of fine-tuning are as follows: