How arttessstt/neural_network_model_for_demand_forecasting works
This is a Streamlit demand-forecasting application with scripts for synthetic sales-data generation, neural-network training, and baseline comparison. Its principal workflow is CSV upload → sales-history preprocessing and item selection → recursive demand forecast → inventory-risk and revenue metrics plus a chart. Training produces the model weights and scaler consumed by the app. The README does not document additional capabilities, and the project directory’s contents are unknown from the supplied tree, so neither is expanded here.
Main entry points: train_nn.py Neural training · app.py Forecast dashboard · sales_history.csv Sales history · model_weights.pt Model weights
Components 8
Forecast application
- Forecast dashboard
app.py
Model development
- Neural training
train_nn.py - Baseline evaluation
train_baseline.py - Model weights
model_weights.pt - Sales scaler
scaler.pkl
Sales data
- Sales history
sales_history.csv - Synthetic data generator
data_generation.py
Other components
- Analyst
Connections 8
- Analyst → Forecast dashboard: uploads CSV
app.py - Synthetic data generator → Sales history: writes history
data_generation.py - Neural training → Sales history: reads history
train_nn.py - Baseline evaluation → Sales history: reads history
train_baseline.py - Neural training → Model weights: saves weights
train_nn.py - Neural training → Sales scaler: saves scaler
train_nn.py - Forecast dashboard → Model weights: loads weights
app.py - Forecast dashboard → Sales scaler: loads scaler
app.py