Copy/paste bug in ex2

This commit is contained in:
Nigel Liang
2018-11-07 12:01:05 -08:00
committed by GitHub
parent 441d6b6018
commit 930d4b1c13

View File

@@ -817,7 +817,7 @@
"print('Cost at test theta : {:.2f}'.format(cost))\n", "print('Cost at test theta : {:.2f}'.format(cost))\n",
"print('Expected cost (approx): 3.16\\n')\n", "print('Expected cost (approx): 3.16\\n')\n",
"\n", "\n",
"print('Gradient at initial theta (zeros) - first five values only:')\n", "print('Gradient at test theta - first five values only:')\n",
"print('\\t[{:.4f}, {:.4f}, {:.4f}, {:.4f}, {:.4f}]'.format(*grad[:5]))\n", "print('\\t[{:.4f}, {:.4f}, {:.4f}, {:.4f}, {:.4f}]'.format(*grad[:5]))\n",
"print('Expected gradients (approx) - first five values only:')\n", "print('Expected gradients (approx) - first five values only:')\n",
"print('\\t[0.3460, 0.1614, 0.1948, 0.2269, 0.0922]')" "print('\\t[0.3460, 0.1614, 0.1948, 0.2269, 0.0922]')"