From af83020c604b5b671f940ecd9bd1253902cbb59d Mon Sep 17 00:00:00 2001 From: hunkim Date: Sat, 16 Apr 2016 15:30:10 +0800 Subject: [PATCH 1/2] test --- 7_lstm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/7_lstm.py b/7_lstm.py index ebfb7a9..3bd6bea 100644 --- a/7_lstm.py +++ b/7_lstm.py @@ -82,7 +82,7 @@ def model(X, W, B, init_state, lstm_size): sess.run(train_op, feed_dict={X: trX[start:end], Y: trY[start:end], init_state: np.zeros((batch_size, state_size))}) - test_indices = np.arange(len(teX)) # Get A Test Batch + test_indices = np.arange(len(teX)) # Get a test batch np.random.shuffle(test_indices) test_indices = test_indices[0:test_size] From af9d7448e8894bb81a67b45ee9186752b9ae5a49 Mon Sep 17 00:00:00 2001 From: hunkim Date: Sat, 16 Apr 2016 15:56:46 +0800 Subject: [PATCH 2/2] test --- 7_lstm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/7_lstm.py b/7_lstm.py index 3bd6bea..0f0f93d 100644 --- a/7_lstm.py +++ b/7_lstm.py @@ -45,7 +45,7 @@ def model(X, W, B, init_state, lstm_size): lstm = rnn_cell.BasicLSTMCell(lstm_size, forget_bias=1.0) # Get lstm cell output, time_step_size (28) arrays with lstm_size output: (batch_size, lstm_size) - outputs, states = rnn.rnn(lstm, X_split, initial_state=init_state) + outputs, _states = rnn.rnn(lstm, X_split, initial_state=init_state) # Linear activation # Get the last output