From 060751a976a0597cb16f584a23a59e8a7395d725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Mon, 30 Jul 2018 18:58:02 +0100 Subject: [PATCH] Fix my_reber_classifier path (fixes #267) --- 14_recurrent_neural_networks.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/14_recurrent_neural_networks.ipynb b/14_recurrent_neural_networks.ipynb index 5cb5124..54154c0 100644 --- a/14_recurrent_neural_networks.ipynb +++ b/14_recurrent_neural_networks.ipynb @@ -2411,7 +2411,7 @@ " acc_val = accuracy.eval(feed_dict={X: X_val, seq_length: l_val, y: y_val})\n", " print(\"{:4d} Train loss: {:.4f}, accuracy: {:.2f}% Validation accuracy: {:.2f}%\".format(\n", " epoch, loss_val, 100 * acc_train, 100 * acc_val))\n", - " saver.save(sess, \"my_reber_classifier\")" + " saver.save(sess, \"./my_reber_classifier\")" ] }, { @@ -2436,7 +2436,7 @@ " for s in test_strings]\n", "\n", "with tf.Session() as sess:\n", - " saver.restore(sess, \"my_reber_classifier\")\n", + " saver.restore(sess, \"./my_reber_classifier\")\n", " y_proba_val = y_proba.eval(feed_dict={X: X_test, seq_length: l_test})\n", "\n", "print()\n",