YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Retail Demand Forecast
Time-series demand forecasting for retail/SKU level. Baseline model (LSTM or XGBoost) trained on historical sales to predict future demand. Suitable for inventory and planning.
Overview
Predicts next-period (e.g. daily or weekly) demand from past history. Can be extended to multiple SKUs or stores; the baseline is single-series for simplicity.
Data
- CSV with columns such as
dateanddemand(orsales). A sample is indata/demand_sample.csv. If--data_pathis missing or the file does not exist, the script uses a synthetic series so you can run without your own data.
Usage
pip install -r requirements.txt
python train.py
Use --data_path to point to your CSV. Model checkpoints are written to ./checkpoints/.
Files
model.pyโ LSTM forecaster;train.pyโ training (synthetic fallback if no CSV).data/demand_sample.csvโ example CSV schema.
Model
- LSTM (PyTorch) on sliding windows; saves to
./checkpoints/demand_forecast.pt.
Limitations / future work
- Single series baseline; multi-SKU would need a global model or per-SKU training.
- Optional: upload a small public dataset to Hugging Face Datasets for reproducibility.
Author
Alireza Aminzadeh
- Email: alireza.aminzadeh@hotmail.com
- Hugging Face: syeedalireza
- LinkedIn: alirezaaminzadeh
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support