mirror of
https://github.com/ArthurDanjou/ml_exercises.git
synced 2026-01-30 11:47:51 +01:00
fix
This commit is contained in:
@@ -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)"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user