Skip to content
Pierce Josse, home
Case study · 04Back to work
Role
Developer
Timeline
2025
Stack
Python · TensorFlow · Flask

Problem

Forecast a stock’s closing price for the coming days from its own history, and show how far the forecast can be trusted.

Approach

A Flask web app on a TensorFlow model. It takes five years of Yahoo Finance data and twelve features for every day (prices, volume, moving averages, RSI and volatility), scales them, and trains three LSTM layers with dropout. It trains with 20, 30, 40 and 50 epochs, keeps the run with the lowest RMSE, and returns the forecast with its RMSE, MAE and MAPE.

Impact

  • 3LSTM layers of 50 units, with dropout against overfitting
  • 12input features for every trading day
  • 4training runs compared, and the lowest RMSE kept