u2t01-bert-agnews

Training Data

  • Dataset: agnews
  • Base Model: bert-base-uncased
  • Hyperparameters:
    • head_lr: 1e-3
    • body_lr: 2e-5
    • seed: 42

Metrics

{
  "loss": 0.3354416787624359,
  "accuracy": 0.9472368421052632,
  "macro_f1": 0.9473421817081283,
  "runtime": 31.8229,
  "samples_per_second": 238.822,
  "steps_per_second": 1.885,
  "epoch": 3.0,
  "method": "full",
  "trainable_params": 109485316,
  "total_train_seconds": 4504.269985198975
}

Headline Metric: Accuracy = 0.9472 | Macro F1 = 0.9473


Example Usage

from transformers import pipeline

# 1. Load text classification pipeline
classifier = pipeline(
    task="text-classification",
    model="Elpapudex/AGnews-Full"
)

# 2. Text for testing
text = "NASA successfully launched a new robotic mission to study lunar geology and water ice."

# 3. Prediction
result = classifier(text)
print(result)

Limitations

  • English-only.
  • Domain-bound (trained on news topics classification).

References

Downloads last month
7
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for Elpapudex/AGnews-Full