stanfordnlp/imdb
Viewer • Updated • 100k • 177k • 370
How to use pachequinho/sentiment_bert_imdb_10 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="pachequinho/sentiment_bert_imdb_10") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("pachequinho/sentiment_bert_imdb_10")
model = AutoModelForSequenceClassification.from_pretrained("pachequinho/sentiment_bert_imdb_10")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("pachequinho/sentiment_bert_imdb_10")
model = AutoModelForSequenceClassification.from_pretrained("pachequinho/sentiment_bert_imdb_10")This model is a fine-tuned version of bert-base-cased on the imdb dataset with only 10% of the training data. 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 | 157 | 0.2957 | 0.8820 |
| No log | 2.0 | 314 | 0.2735 | 0.8984 |
Base model
google-bert/bert-base-cased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="pachequinho/sentiment_bert_imdb_10")