valurank/Topic_Classification
Viewer β’ Updated β’ 22.5k β’ 140 β’ 3
How to use valurank/distilroberta-topic-classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="valurank/distilroberta-topic-classification") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("valurank/distilroberta-topic-classification")
model = AutoModelForSequenceClassification.from_pretrained("valurank/distilroberta-topic-classification")This model is a fine-tuned version of distilroberta-topic-base on a dataset of headlines. It achieves the following results on the evaluation set:
The following data sources were used:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | F1 |
|---|---|---|---|---|
| 2.3851 | 1.0 | 561 | 2.3445 | 0.6495 |
| 2.1441 | 2.0 | 1122 | 2.1980 | 0.7019 |
| 1.9992 | 3.0 | 1683 | 2.1720 | 0.7189 |
| 1.8384 | 4.0 | 2244 | 2.1425 | 0.7403 |
| 1.7468 | 5.0 | 2805 | 2.1666 | 0.7453 |
| 1.6360 | 6.0 | 3366 | 2.1779 | 0.7456 |
| 1.5935 | 7.0 | 3927 | 2.2003 | 0.7555 |
| 1.5460 | 8.0 | 4488 | 2.2157 | 0.7575 |
| 1.5510 | 9.0 | 5049 | 2.2300 | 0.7536 |
| 1.5097 | 10.0 | 5610 | 2.2357 | 0.7547 |