Merge pull request #466 from austin-chan/master

[Chapter 11] Fix text for L1 L2 regularization section
main
Aurélien Geron 2021-09-23 23:30:45 +12:00 committed by GitHub
commit 1069c513b7
1 changed files with 1 additions and 1 deletions

View File

@ -1777,7 +1777,7 @@
"layer = keras.layers.Dense(100, activation=\"elu\",\n",
" kernel_initializer=\"he_normal\",\n",
" kernel_regularizer=keras.regularizers.l2(0.01))\n",
"# or l1(0.1) for 1 regularization with a factor or 0.1\n",
"# or l1(0.1) for 1 regularization with a factor of 0.1\n",
"# or l1_l2(0.1, 0.01) for both 1 and 2 regularization, with factors 0.1 and 0.01 respectively"
]
},