Fix typos and math errors in notebooks
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user