mirror of
https://github.com/ArthurDanjou/ml_exercises.git
synced 2026-01-14 12:14:38 +01:00
fix
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
"source": [
|
||||
"# reshape image into a matrix with RGB values for each pixel\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",
|
||||
"print(X.shape)"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user