community-datasets/yahoo_answers_topics
Viewer • Updated • 1.46M • 9.07k • 62
How to use Prezily/topic_classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Prezily/topic_classification") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Prezily/topic_classification")
model = AutoModelForSequenceClassification.from_pretrained("Prezily/topic_classification")This model is a fine-tuned version of bert-base-uncased on the yahoo_answers_topics dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.005 | 1.0 | 625 | 1.0478 | 0.6519 |
| 0.7717 | 2.0 | 1250 | 1.0482 | 0.6557 |
| 0.4566 | 3.0 | 1875 | 1.1769 | 0.6518 |
Base model
google-bert/bert-base-uncased