Skip to content

Commit

Permalink
Fix my_reber_classifier path (fixes ageron#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron committed Jul 30, 2018
1 parent 5b9bd52 commit ad2641d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 14_recurrent_neural_networks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3390,7 +3390,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\")"
]
},
{
Expand All @@ -3409,7 +3409,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"INFO:tensorflow:Restoring parameters from my_reber_classifier\n",
"INFO:tensorflow:Restoring parameters from ./my_reber_classifier\n",
"\n",
"Estimated probability that these are Reber strings:\n",
"BPBTSSSSSSSSSSSSXXTTTTTVPXTTVPXTTTTTTTVPXVPXVPXTTTVVETE: 0.00%\n",
Expand All @@ -3427,7 +3427,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",
Expand Down

0 comments on commit ad2641d

Please sign in to comment.