mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-14 12:14:36 +01:00
Add comment about the reshape operation from the training_step function
This commit is contained in:
@@ -1376,7 +1376,9 @@
|
|||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"Lastly, let's create a function that will sample some experiences from the replay memory and perform a training step:"
|
"Lastly, let's create a function that will sample some experiences from the replay memory and perform a training step:\n",
|
||||||
|
"\n",
|
||||||
|
"**Note**: the first 3 releases of the 2nd edition were missing the `reshape()` operation which converts `target_Q_values` to a column vector (this is required by the `loss_fn()`)."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user