Downloads · 30 days
9
8% of all-time downloads
cglez/bert-base-uncased-ft-ag_news_imb
bert-base-uncased-ft-ag_news_imb is a text classification model from cglez. 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.
A fine-tuned BERT model using the AG-News Imbalanced dataset.
Downloads · 30 days
9
8% of all-time downloads
All-time downloads
114
Public
Parameters
109M
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
A fine-tuned BERT model using the AG-News Imbalanced dataset.
This model is based on the BERT base (uncased) architecture and has been fine-tuned on the AG-News dataset in its binary, imbalanced version, as in the Active Learning for BERT: An Empirical Study paper.
Alternative models trained using different initialization seeds are available and can be accessed using specific branches:
| Random Seed | Branch |
|---|---|
| 120 | seed-120 |
| 220 | seed-220 |
| 320 | seed-320 |
| 420 | seed-420 |
| 520 | seed-520 |
To load a model from a specific branch, use the revision parameter:
from transformers import AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained("<model>", revision="seed-120")
[Information pending]
Fine-tuning was performed end-to-end using a grid search over key hyperparameters. Model performance was evaluated based on validation loss computed on the development set. After identifying the optimal hyperparameter configuration, the final model was retrained on the entire training dataset.
The model was trained on the AG-News training partition, with validation performed on a random 20% split of the training data.
This model can be used for classification tasks aligned with the structure and intent of the AG-News dataset.
For broader guidance, refer to the BERT base model’s Inteded Uses & Limitations.
This model inherits the potential risks and limitations of its base model. For more details, refer to the Limitations and bias section of the original model documentation.
Additionally, it may reflect or amplify patterns and biases present in the AG-News training data.
If you use this model in your research, please cite both the base BERT model and the AG-News source.