Show the flattening

Machine Learning · from Digits — where kNN finally wins

load_digitsflattening imagesKNeighborsClassifiermulti-class confusionPCA

Putting the kettle on…

Starting up…

Exercise 1

Show the flattening. Return [images_shape, data_shape, max_pixel] — the picture shape, the flattened shape, and the largest pixel value.

your answer
stuck? the lesson behind it
Digits — where kNN finally wins
Images as 64 columns, a 10×10 confusion matrix, and PCA that actually pays