Reddit stock sentiment Daniel Rotkopf

What does r/stocks think it is saying?

An LSTM trained on 45,595 Reddit comments about stocks, each one labelled negative, neutral or positive. Paste a comment below and it will tell you which of the three it thinks you have.

The model reads both. Context is what separates "this will age well" said about a crash from the same words said about a rally.

Real comments from the corpus

Straight out of the training data, with the label the GPT-4o-mini pass gave them. Pick one to run it through the model. Where the two disagree it says so — the model gets about two in three right, and hiding the third would be a strange way to show you a classifier.

How it got here

01

Scrape

Selenium walks old.reddit search and pulls each post's comment tree.

02

Label

GPT-4o-mini reads every comment with the post it replies to.

03

Balance

Every class undersampled to the size of the smallest.

04

Train

Three LSTM variants over GPT-2 tokenised sequences.

05

Serve

This page, running the trained weights on NumPy.

The longer version