mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-14 20:19:29 +01:00
gradients(dfdx, [x, y]) instead of gradients(dfdx, [3., 4.]), fixes #399
This commit is contained in:
@@ -235,7 +235,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"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