issue 32: remove dropout in stateful RNN
parent
b9509ced94
commit
22aa520ccc
|
@ -293,9 +293,12 @@
|
|||
"source": [
|
||||
"model = keras.models.Sequential([\n",
|
||||
" keras.layers.GRU(128, return_sequences=True, input_shape=[None, max_id],\n",
|
||||
" dropout=0.2, recurrent_dropout=0.2),\n",
|
||||
" # no dropout in stateful RNN (https://github.com/ageron/handson-ml2/issues/32)\n",
|
||||
" # dropout=0.2, recurrent_dropout=0.2,\n",
|
||||
" ),\n",
|
||||
" keras.layers.GRU(128, return_sequences=True,\n",
|
||||
" dropout=0.2, recurrent_dropout=0.2),\n",
|
||||
" # dropout=0.2, recurrent_dropout=0.2\n",
|
||||
" ),\n",
|
||||
" keras.layers.TimeDistributed(keras.layers.Dense(max_id,\n",
|
||||
" activation=\"softmax\"))\n",
|
||||
"])\n",
|
||||
|
|
Loading…
Reference in New Issue