Prepare training data for classification
masterWhen training a network for classification, inputs should be normalized (e.g., RGB values scaled between 0 and 1) and outputs should be represented using one-hot encoding.
In one-hot encoding, the output is an array of zeros with a 1 at the index corresponding to the correct class. For example, if you have 3 possible colors and the target is the second color, the output array would be [0, 1, 0].