mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-02-02 13:07:51 +01:00
gradients(dfdx, [x, y]) instead of gradients(dfdx, [3., 4.]), fixes #399
This commit is contained in:
@@ -235,7 +235,7 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"def d2f(x, y):\n",
|
"def d2f(x, y):\n",
|
||||||
" return [gradients(dfdx, [3., 4.]), gradients(dfdy, [3., 4.])]"
|
" return [gradients(dfdx, [x, y]), gradients(dfdy, [x, y])]"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user