This commit is contained in:
Morten Hjorth-Jensen
2024-10-09 20:19:59 +02:00
parent dbbebedb06
commit 5f1c223a0f
2 changed files with 1 additions and 547 deletions
+1 -1
View File
@@ -125,7 +125,7 @@
"eta = 1.0/np.max(EigValues)\n",
"Niterations = 1000\n",
"\n",
"\n",
"#while (iter <= Ni... or test)\n",
"for iter in range(Niterations):\n",
" gradients = 2.0/n*X.T @ ((X @ theta)-y)\n",
" theta -= eta*gradients\n",