Train an LSTM to predict Palantir stock direction
From @mar_antaya
The creator reports their own accuracy numbers. We read the captions only and saw no code.
The creator walks through a small machine learning project. It pulls Palantir price data with yfinance, charts it in Plotly, and builds features from moving averages and closing price. An LSTM model then guesses if tomorrow closes higher. They report 59 percent training and 51 percent testing accuracy, which is near a coin toss.
How it works
- 1
Download stock data
Use yfinance
- 2
Clean and plot it
Use Plotly
- 3
Build features
5, 20 and 50 day averages plus close
- 4
Train an LSTM model
Predict up or down tomorrow
- 5
Read the accuracy
59% train, 51% test
- 6
Compare with chance
About 55% or more shows learning
Who it helps
Tools involved
Before you try this
- Test accuracy is near chance; this is not trading advice.
- No code is shown in the captions.
Get new additions
Email updates when new entries are added are coming soon. The library stays free and open to browse. Nothing is collected on this page today.