Views
No views yet
Base model:distilbert-base-uncased
Trainer logs)| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 1.2677 | 1.0 | 84 | 1.0653 | 0.9107 | 0.9097 | 0.9147 | 0.9107 |
| 0.4341 | 2.0 | 168 | 0.3179 | 0.9821 | 0.9820 | 0.9829 | 0.9821 |
| 0.0963 | 3.0 | 252 | 0.0865 | 1.0 | 1.0 | 1.0 | 1.0 |
| 0.0568 | 4.0 | 336 | 0.0427 | 1.0 | 1.0 | 1.0 | 1.0 |
| 0.0414 | 5.0 | 420 | 0.0356 | 1.0 | 1.0 | 1.0 | 1.0 |
Note: Perfect scores may indicate an easy task, strong regularization, or possible data leakage. Validate on a held-out set and/or external data.
str)1from transformers import AutoTokenizer, AutoModelForSequenceClassification, TextClassificationPipeline
2
3repo_id = "scottymcgee/text-classifier" # update if different
4tokenizer = AutoTokenizer.from_pretrained(repo_id)
5model = AutoModelForSequenceClassification.from_pretrained(repo_id)
6
7pipe = TextClassificationPipeline(model=model, tokenizer=tokenizer, return_all_scores=False)
8pipe("this chorus is so catchy, reminds me of late 90s production")