defunct-datasets/amazon_us_reviews
Updated • 534 • 75
How to use DenilsenAxel/nlp-text-classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="DenilsenAxel/nlp-text-classification") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("DenilsenAxel/nlp-text-classification")
model = AutoModelForSequenceClassification.from_pretrained("DenilsenAxel/nlp-text-classification")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("DenilsenAxel/nlp-text-classification")
model = AutoModelForSequenceClassification.from_pretrained("DenilsenAxel/nlp-text-classification")This model is a fine-tuned version of bert-base-uncased on the amazon_us_reviews 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 |
|---|---|---|---|---|
| 0.6471 | 1.0 | 7500 | 0.6596 | 0.7376 |
| 0.5235 | 2.0 | 15000 | 0.6997 | 0.7423 |
| 0.3955 | 3.0 | 22500 | 0.9348 | 0.7441 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="DenilsenAxel/nlp-text-classification")