How aparajith-2105/canteen-sales-predictor works
A small terminal application: the user enters daily canteen data, trains and reviews a sales model, then supplies tomorrow’s conditions to receive an expected-sales forecast and cook amount. The single source file implements the menu, CSV persistence, demo-data generation, cross-validation, range warnings, and prediction. README documents the capabilities; edges below reflect calls visible in the excerpt.
Main entry points: canteen_predictor_linear.py Menu workflow · canteen.csv Daily CSV
Components 13
Terminal app
- Menu workflow
canteen_predictor_linear.py - Validated input
canteen_predictor_linear.py
Daily data
- Add daily record
canteen_predictor_linear.py - Demo data
canteen_predictor_linear.py - Daily CSV
canteen.csv - View saved data
canteen_predictor_linear.py
Sales modeling
- Train model
canteen_predictor_linear.py - Cross-validation
canteen_predictor_linear.py - Factor effects
canteen_predictor_linear.py - Tomorrow forecast
canteen_predictor_linear.py - Range warnings
canteen_predictor_linear.py - Cook recommendation
canteen_predictor_linear.py
Other components
- Canteen operator
Connections 18
- Canteen operator → Menu workflow: chooses option
canteen_predictor_linear.py - Menu workflow → Add daily record: dispatches to
canteen_predictor_linear.py - Menu workflow → Demo data: dispatches to
canteen_predictor_linear.py - Menu workflow → Train model: dispatches to
canteen_predictor_linear.py - Menu workflow → Tomorrow forecast: dispatches to
canteen_predictor_linear.py - Menu workflow → View saved data: dispatches to
canteen_predictor_linear.py - Add daily record → Validated input: asks for
canteen_predictor_linear.py - Add daily record → Daily CSV: reads and writes
canteen_predictor_linear.py - Demo data → Daily CSV: overwrites
canteen_predictor_linear.py - View saved data → Daily CSV: reads
canteen_predictor_linear.py - Train model → Daily CSV: loads records
canteen_predictor_linear.py - Train model → Cross-validation: evaluates with
canteen_predictor_linear.py - Train model → Factor effects: reports coefficients
canteen_predictor_linear.py - Tomorrow forecast → Train model: trains if needed
canteen_predictor_linear.py - Tomorrow forecast → Validated input: asks for
canteen_predictor_linear.py - Tomorrow forecast → Range warnings: checks inputs
canteen_predictor_linear.py - Tomorrow forecast → Cook recommendation: computes recommendation
canteen_predictor_linear.py - Tomorrow forecast → Canteen operator: shows forecast
canteen_predictor_linear.py