Skip to content

Commit 4680f60

Browse files
committed
Added more comments
1 parent ec25d6c commit 4680f60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/3 - Neural Networks/recurrent_network.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
from tensorflow.models.rnn import rnn, rnn_cell
1616
import numpy as np
1717

18+
'''
19+
To classify images using a reccurent neural network, we consider every image row as a sequence of pixels.
20+
Because MNIST image shape is 28*28px, we will then handle 28 sequences of 28 steps for every sample.
21+
'''
22+
1823
# Parameters
1924
learning_rate = 0.001
2025
training_iters = 100000

0 commit comments

Comments
 (0)