Skip to content

Commit 17a3964

Browse files
antil1hunkim
authored andcommitted
Update lab-12-5-rnn_stock_prediction.py (hunkim#166)
change variable name learing_rate to learning_rate
1 parent 10956e5 commit 17a3964

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lab-12-5-rnn_stock_prediction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def MinMaxScaler(data):
4646
data_dim = 5
4747
hidden_dim = 10
4848
output_dim = 1
49-
learing_rate = 0.01
49+
learning_rate = 0.01
5050
iterations = 500
5151

5252
# Open, High, Low, Volume, Close
@@ -88,7 +88,7 @@ def MinMaxScaler(data):
8888
# cost/loss
8989
loss = tf.reduce_sum(tf.square(Y_pred - Y)) # sum of the squares
9090
# optimizer
91-
optimizer = tf.train.AdamOptimizer(learing_rate)
91+
optimizer = tf.train.AdamOptimizer(learning_rate)
9292
train = optimizer.minimize(loss)
9393

9494
# RMSE

0 commit comments

Comments
 (0)