Downloads · 30 days
8
12% of all-time downloads
EricCRX/outputs_distilbert_superhero
outputs_distilbert_superhero is a text classification model from EricCRX. 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.
Model: Fine-tuned distilbert-base-uncased Dataset: rlogh/superhero-texts Task: Binary text classification — identify whether a description belongs to DC or Marvel superhero universe.
Downloads · 30 days
8
12% of all-time downloads
All-time downloads
67
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Model: Fine-tuned distilbert-base-uncased
Dataset: rlogh/superhero-texts
Task: Binary text classification — identify whether a description belongs to DC or Marvel superhero universe.
original: 100 manually written descriptionsaugmented: 1000 synthetically generated samples (EDA + character-level noise)0 = DC1 = MarvelWe used the augmented split for training/validation and reserved part of the original split for held-out testing.
distilbert-base-uncased (66M params)| Metric | Validation | Test (original split) |
|---|---|---|
| Accuracy | 1.00 | ~0.98 |
| F1 (macro) | 1.00 | ~0.98 |
Pred: DC Pred: Marvel
True DC 49 1 True Marvel 1 49
⚠️ Limitations:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_id = "YOUR_USERNAME/outputs_distilbert_superhero"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
text = "A vigilante hero who protects Gotham at night."
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
pred = torch.argmax(logits, dim=-1).item()
print("Prediction:", "DC" if pred == 0 else "Marvel")
pytorch_model.bin — fine-tuned model weights
config.json — model config
tokenizer.json / vocab.txt — tokenizer
README.md — this model card
Dataset license: Apache-2.0 (per dataset card)
Model license: Apache-2.0
AI usage disclosure: Augmented dataset created with Python EDA scripts. Model card drafted with AI assistance, final content reviewed and curated by the student.