Created
June 22, 2018 10:18
-
-
Save Tathagatd96/73a8020439857ae7a8a419143172a207 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#MSE | |
loss=tf.reduce_mean(tf.square(outputs-y)) | |
optimizer=tf.train.AdamOptimizer(learning_rate=learning_rate) | |
train=optimizer.minimize(loss) | |
init=tf.global_variables_initializer() | |
x_new=np.sin(np.array(train_inst[:-1].reshape(-1,num_time_steps,num_inputs))) | |
#If using GPU, specify the fraction oof memory to be consumed | |
#gpu_options=tf.GPUOptions(per_process_gpu_memory_fraction=0.75) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment