This commit is contained in:
franzi
2022-11-23 15:56:16 +01:00
parent 8c1b1b4c06
commit 8bee2724f7

View File

@@ -54,7 +54,7 @@
"source": [ "source": [
"# reshape image into a matrix with RGB values for each pixel\n", "# reshape image into a matrix with RGB values for each pixel\n",
"h, w, d = img_array.shape\n", "h, w, d = img_array.shape\n",
"X = new_X.reshape(h*w, d)\n", "X = img_array.reshape(h*w, d)\n",
"# 1 pixel = 1 data point; RGB values = features\n", "# 1 pixel = 1 data point; RGB values = features\n",
"print(X.shape)" "print(X.shape)"
] ]