stanfordnlp/imdb
Viewer • Updated • 100k • 271k • 380
How to use jinya425/bert-base-cased_for_sentiment_analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="jinya425/bert-base-cased_for_sentiment_analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jinya425/bert-base-cased_for_sentiment_analysis")
model = AutoModelForSequenceClassification.from_pretrained("jinya425/bert-base-cased_for_sentiment_analysis")# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="jinya425/bert-base-cased_for_sentiment_analysis")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jinya425/bert-base-cased_for_sentiment_analysis")
model = AutoModelForSequenceClassification.from_pretrained("jinya425/bert-base-cased_for_sentiment_analysis")This model is a fine-tuned version of bert-base-cased on the imdb 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 |
|---|---|---|---|---|
| No log | 1.0 | 125 | 0.3699 | 0.847 |
| No log | 2.0 | 250 | 0.4779 | 0.859 |
| No log | 3.0 | 375 | 0.6286 | 0.874 |
Base model
google-bert/bert-base-cased
# Gated model: Login with a HF token with gated access permission hf auth login