Reshapping Images

What you need to remember:

Common steps for pre-processing a new dataset are:

Imagine you have a big box of crayons, each one a different color. You want to organize them neatly so you can find any color quickly when you're drawing. In this case, your crayons are like the pixels in your pictures.

So, in summary, you're taking your colorful pictures, squishing each one into a long line of colors, organizing these lines neatly in a box, and then adjusting the brightness so everything is balanced. Now, your crayon box (dataset) is ready for you to create beautiful drawings (or for the computer to learn from them)!