Skip to content

Commit b8e85fc

Browse files
Update README.md
1 parent 3cdac8a commit b8e85fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,10 @@ LSTM network needs the data imported as a 3D array. To translate this 2D array i
444444

445445
![](https://github.com/JordiCorbilla/stock-prediction-deep-neural-learning/blob/master/3dmatrix.png)
446446

447+
We have implemented a time step of 3 days. Using this technique, we allow our network to look back 3 days on our data to predict the subsequent day). The figure below represents how our implementation uses this concept and how the first 3 samples for Close price would generate the 4th sample and so on.This will generate a matrix of shape (3,1), 3 being the time steps and 1 the number of features (Close price).
448+
449+
![](https://github.com/JordiCorbilla/stock-prediction-deep-neural-learning/blob/master/timesteps.png)
450+
447451
### 3.4) Creation of the deep learning model LSTM
448452

449453
To create this model, you will need to have **TensorFlow**, **TensorFlow-Gpu** and **Keras** installed in order for this to run. The code for this model can be seen below and the explanation for each layer is also defined below:

0 commit comments

Comments
 (0)