Parcourir la source

Added more comments

Aymeric Damien il y a 9 ans
Parent
commit
4680f601ef
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      examples/3 - Neural Networks/recurrent_network.py

+ 5 - 0
examples/3 - Neural Networks/recurrent_network.py

@@ -15,6 +15,11 @@ import tensorflow as tf
 from tensorflow.models.rnn import rnn, rnn_cell
 import numpy as np
 
+'''
+To classify images using a reccurent neural network, we consider every image row as a sequence of pixels.
+Because MNIST image shape is 28*28px, we will then handle 28 sequences of 28 steps for every sample.
+'''
+
 # Parameters
 learning_rate = 0.001
 training_iters = 100000