Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3fb520f891 |
@@ -1123,7 +1123,7 @@
|
|||||||
"num_iters = 400\n",
|
"num_iters = 400\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# init theta and run gradient descent\n",
|
"# init theta and run gradient descent\n",
|
||||||
"theta = np.zeros(3)\n",
|
"theta = np.zeros(4)\n",
|
||||||
"theta, J_history = gradientDescentMulti(X, y, theta, alpha, num_iters)\n",
|
"theta, J_history = gradientDescentMulti(X, y, theta, alpha, num_iters)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# Plot the convergence graph\n",
|
"# Plot the convergence graph\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user