Views
No views yet
⚠️ DEPRECATED — kept for legacy compatibility. This model was trained withmax_seq_length=256and an unconverged 50-epoch / 5e-5 schedule. For new work, usejongador/cnn-imdb-512, which covers ~95–98% of IMDB reviews (vs. ~85–90%), uses a tuned schedule (30 epochs, 1e-4 LR, early stopping), and achieves higher accuracy (86.09% vs. 84.34%).
max_seq_length=256. Trained as a victim model for adversarial NLP research (TextBugger / TextFooler / DeepWordBug-style attacks).| Hyperparameter | Value |
|---|---|
| Epochs | 50 (no early stopping) |
| Batch size | 64 |
| Learning rate | 5e-5 |
| Weight decay | 0.01 |
| Warmup steps | 500 |
| Random seed | 786 |
| Hardware | NVIDIA RTX 3050 Laptop (4 GB VRAM) |
jongador/cnn-imdb-512 variant uses a higher learning rate (1e-4), fewer epochs (30), and early stopping (5-epoch patience) to avoid this regime.| Metric | Value |
|---|---|
| Accuracy | 84.34% |
textattack library. TextAttack's from_pretrained does not currently resolve Hugging Face Hub IDs — download the snapshot first via huggingface_hub, then pass the local path:1from huggingface_hub import snapshot_download
2from textattack.models.helpers import WordCNNForClassification
3
4local_dir = snapshot_download(repo_id="jongador/cnn-imdb-256")
5model = WordCNNForClassification.from_pretrained(local_dir)