stanfordnlp/imdb
Viewer • Updated • 100k • 180k • 938
Binary sentiment classifier (0 = negative, 1 = positive) built during the Wheeltrix Data Science & Analytics internship, as one half of a comparison with a TF-IDF + logistic regression baseline.
distilbert-base-uncased fine-tuned on the 25,000 IMDB training reviews for 2 epochs
(learning rate 2e-5, batch size 16, max length 256). Single run, no hyperparameter search.
from transformers import pipeline
clf = pipeline("text-classification", model="sidratahseen/distilbert-imdb-sentiment")
clf("A heartfelt story with superb performances.")# LABEL_1 = positive, LABEL_0 = negative
Base model
distilbert/distilbert-base-uncased