stanfordnlp/imdb
Viewer • Updated • 100k • 271k • 381
How to use knightscode139/bert-base-cased-imdb-sentiment with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="knightscode139/bert-base-cased-imdb-sentiment") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("knightscode139/bert-base-cased-imdb-sentiment")
model = AutoModelForSequenceClassification.from_pretrained("knightscode139/bert-base-cased-imdb-sentiment")Fine-tuned BERT-base-cased for binary sentiment classification on movie reviews.
This model is a fine-tuned version of google-bert/bert-base-cased on Stanford IMDB dataset.
Test Results:
This model classifies movie reviews as positive or negative sentiment. Fine-tuned from google-bert/bert-base-cased on the IMDB dataset using HuggingFace Trainer.
Uses:
Limitations:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.247 | 1.0 | 1250 | 0.2467 | 0.907 |
| 0.1241 | 2.0 | 2500 | 0.3196 | 0.9212 |
| 0.0574 | 3.0 | 3750 | 0.3944 | 0.9178 |
Base model
google-bert/bert-base-cased