Use default seed=42
parent
659ca563ae
commit
422cd78ea6
|
@ -60,8 +60,8 @@
|
||||||
"# to make this notebook's output stable across runs\n",
|
"# to make this notebook's output stable across runs\n",
|
||||||
"def reset_graph(seed=42):\n",
|
"def reset_graph(seed=42):\n",
|
||||||
" tf.reset_default_graph()\n",
|
" tf.reset_default_graph()\n",
|
||||||
" tf.set_random_seed(42)\n",
|
" tf.set_random_seed(seed)\n",
|
||||||
" np.random.seed(42)\n",
|
" np.random.seed(seed)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# To plot pretty figures\n",
|
"# To plot pretty figures\n",
|
||||||
"%matplotlib inline\n",
|
"%matplotlib inline\n",
|
||||||
|
|
Loading…
Reference in New Issue