Use default seed=42
parent
659ca563ae
commit
422cd78ea6
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue