Use default seed=42

main
Aurélien Geron 2017-06-06 22:44:01 +02:00
parent 659ca563ae
commit 422cd78ea6
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@
"# to make this notebook's output stable across runs\n",
"def reset_graph(seed=42):\n",
" tf.reset_default_graph()\n",
" tf.set_random_seed(42)\n",
" np.random.seed(42)\n",
" tf.set_random_seed(seed)\n",
" np.random.seed(seed)\n",
"\n",
"# To plot pretty figures\n",
"%matplotlib inline\n",