imdb-sentiment
Collection
A collection of IMDB movie-review sentiment classification models for a machine learning course project. • 2 items • Updated
This model is a course project for IMDB movie-review sentiment classification.
It uses a TF-IDF text representation followed by a small scikit-learn MLP neural network.
imdb_top_500.csv0 = negative, 1 = positivemodel.joblib: full scikit-learn pipelinevectorizer.joblib: standalone TF-IDF vectorizermetrics.json: training and evaluation metricsimport joblib
model = joblib.load("model.joblib")
prediction = model.predict(["This movie is great and deeply moving."])[0]
print("positive" if prediction == 1 else "negative")