IMDb Sentiment Neural Network

This CPU model classifies English IMDb-style movie reviews as positive or negative. It combines word unigram and bigram TF-IDF with a one-hidden-layer PyTorch network.

Evaluation

Training used the course CSV imdb_balanced_10k.csv. After deduplication, it was stratified into an 80% training and 20% test split with seed 42.

The held-out test set contains 1,997 reviews. Training used 7,986 reviews. The TF-IDF vocabulary was fitted on the training split.

Metric Value
Accuracy 0.8988
Macro F1 0.8988
Macro precision 0.8989
Macro recall 0.8988

The input SHA-256 and any pinned source revision are recorded in config.json. Use the linked repository's predict.py for inference. The softmax scores are not calibrated. Accuracy may be lower for sarcasm, mixed opinions, other languages, and text outside the movie-review domain.

Downloads last month
26
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support