Fix typos and math errors in notebooks

This commit is contained in:
2026-05-27 09:01:22 -04:00
parent c95d440cdb
commit 894ea72db9
5 changed files with 25 additions and 25 deletions

View File

@@ -52,7 +52,7 @@
"# Create a pandas DataFrame\n",
"df = pd.DataFrame(data)\n",
"\n",
"# Create out matrix X\n",
"# Create our matrix X\n",
"X = df.to_numpy()\n"
]
},
@@ -155,8 +155,8 @@
"\n",
"# Create our rank-1 approximation\n",
"sigma1 = S[0]\n",
"u1 = U[:, [0]]\t\t#shape (2,2)\n",
"v1T = Vh[[0], :]\t\t#shape (3,3)\n",
"u1 = U[:, [0]]\t\t#shape (2,1)\n",
"v1T = Vh[[0], :]\t\t#shape (1,3)\n",
"A1 = sigma1 * (u1 @ v1T)\n",
"\n",
"# Take norms and view errors\n",
@@ -275,7 +275,7 @@
"# Create a pandas DataFrame\n",
"df = pd.DataFrame(data)\n",
"\n",
"# Create out matrix X\n",
"# Create our matrix X\n",
"X = df.to_numpy()\n",
"\n",
"# Get our vector of means\n",