October 2018
Beginner
362 pages
9h 32m
English
Let's start by walking through a supervised learning example utilizing an LSTM to predict where the price of a given stock is going, based on its past performance. As we learned in previous chapters, LSTMs and Recurrent Neural Networks (RNN) in general are superior at modeling and prediction for series data. This model will utilize the trading platform structure that we created previously:
import tensorflow as tffrom sklearn.preprocessing import MinMaxScalerimport loggingimport os
class TradingRNN(): ''' An RNN Model for ...
Read now
Unlock full access