Customize loss function to make LSTM model more applicable in stock price prediction

Loss function should not consider price difference only, directional loss also matters !!!

Hudson Ko
Towards Data Science
8 min readJun 20, 2020

--

Photo by Nick Chong on Unsplash

Background

There are many tutorials or articles online teaching you how to build a LSTM model to predict stock price. Either it is simple…

--

--

Hong Konger | A Finance Underdog at Daytime | An AI Startup Boss at Nighttime | Oxbridge | CFA, CAIA, FRM, CESGA, SCR