mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-20 06:51:39 +01:00
Use default seed=42
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user