Min-max normalization rescales feature values to a common 0–1 range. Aligning differently sized inputs, such as sales counts and discount percentages, can speed neural-network training and reduce the chance of getting stuck at a local minimum. section 8.5
For each feature column, subtract its minimum and divide by its maximum minus its minimum: X′ = (X − Xmin) / (Xmax − Xmin). The smallest observed value becomes 0 and the largest becomes 1. The PyTorch routine applies the same transformation to the target values.
Demand prediction data
A demand-prediction dataset combines previous-week sales, discount fraction, weeks to the next holidays, and units sold. Sales values are much larger than percentage or count features, making a shared 0–1 scale useful before training the neural network. section 8.5



