Merge pull request #466 from austin-chan/master

[Chapter 11] Fix text for L1 L2 regularization section
This commit is contained in:
Aurélien Geron
2021-09-23 23:30:45 +12:00
committed by GitHub

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"
]
},