Demand prediction estimates upcoming product sales from historical and contextual variables. In an e-commerce example, the input vector contains previous-week sales, discount fraction, and weeks until the next holiday; the target is next week's mobile-phone sales. This is framed as a regression problem for inventory management. section 8.5
A PyTorch workflow connects the prediction problem to neural-network training:
- Represent historical examples as an N × 3 feature matrix and store actual sales in a target vector. section 8.5
