How parand1khalili/retail-forecast works
This is a local RA sales-forecasting application. A user uploads a workbook through the web interface; the service checks readiness, interprets the workbook schema, builds a dataset, and forecasts future periods. Users can also run model backtests and download forecast workbooks. The graph includes documented analysis and reporting capabilities as separate branches. Evidence is limited to the supplied excerpts and source index; unsampled implementation details and some wiring are therefore omitted.
Main entry points: auto_engine.py Automatic forecasts · app.py HTTP service · app_core.py Dataset parsing · app_ui.html Web UI
Components 19
Web interface
- Web UI
forecasting/app_ui.html - HTTP service
forecasting/app.py - Runtime checks
forecasting/runtime_preflight.py - Runtime identity
forecasting/runtime_identity.py
Data preparation
- Schema detection
forecasting/schema.py - Dataset parsing
forecasting/app_core.py
Forecasting
- Automatic forecasts
forecasting/auto_engine.py - Selection policies
forecasting/selection_core.py - Category selection
forecasting/category_selection.py
Evaluation and outputs
- Level comparisons
forecasting/benchmark_levels.py - Backtest models
forecasting/backtest.py - Light benchmark
forecasting/light_benchmark.py - Backtest audit
forecasting/backtest_lab.py - Hierarchy audit
forecasting/evaluate_hierarchy.py - Actuals evaluation
forecasting/evaluate_actuals.py - Full workbook export
forecasting/full_export.py - Forecast export
forecasting/export_forecast.py - Model report
forecasting/write_model_report.py
Other components
- User
Connections 21
- User → Web UI: uses
- Web UI → HTTP service: sends requests
- HTTP service → Runtime checks: checks readiness
forecasting/app.py - HTTP service → Dataset parsing: loads workbook
forecasting/app.py - Dataset parsing → Schema detection: resolves fields
forecasting/app_core.py - HTTP service → Automatic forecasts: requests forecasts
forecasting/app.py - Automatic forecasts → Dataset parsing: uses dataset
forecasting/auto_engine.py - Automatic forecasts → Selection policies: uses policies
forecasting/auto_engine.py - Automatic forecasts → Category selection: selects recipes
forecasting/auto_engine.py - Category selection → Level comparisons: uses comparisons
forecasting/category_selection.py - HTTP service → Full workbook export: builds workbook
forecasting/app.py - Full workbook export → Automatic forecasts: requests forecasts
forecasting/full_export.py - HTTP service → Backtest audit: serves audit
forecasting/app.py - Backtest audit → Hierarchy audit: uses audit
forecasting/backtest_lab.py - Automatic forecasts → Backtest models: uses benchmarks
forecasting/auto_engine.py - Automatic forecasts → Light benchmark: uses benchmarks
forecasting/auto_engine.py - Hierarchy audit → Automatic forecasts: evaluates forecasts
forecasting/evaluate_hierarchy.py - HTTP service → Runtime identity: reports runtime
forecasting/app.py - Dataset parsing → Actuals evaluation: evaluated against
- Automatic forecasts → Forecast export: provides forecasts
forecasting/export_forecast.py - Automatic forecasts → Model report: provides results
forecasting/write_model_report.py