How normangw/streamlit_demo works
This is a small Streamlit teaching tool for exploring how shipment-risk scores, business costs, and expedite capacity affect decisions. A student adjusts a scenario, model, and threshold; the app presents decision metrics and visual comparisons across five lesson tabs. The synthetic-data module generates the fixed-seed shipment history and provides the metric calculations, while a matching CSV is available to students. The main app excerpt is partial, so some tab-specific implementation links are documented rather than verified in source.
Main entry points: app.py Streamlit app · expedite_data.py Metric functions · shipments.csv Student CSV
Components 11
Classroom interaction
- Streamlit app
app.py - Scenario controls
app.py
Shipment data
- Shipment generator
expedite_data.py - Student CSV
shipments.csv
Decision analytics
- Metric functions
expedite_data.py
Lesson views
- Threshold explorer
app.py - Shipment round
app.py - Model showdown
app.py - Calibration view
app.py - Data view
app.py
Other components
- Student
Connections 14
- Student → Streamlit app: uses
README.md - Student → Scenario controls: adjusts
README.md - Streamlit app → Shipment generator: generates data
app.py - Shipment generator → Student CSV: writes data
expedite_data.py - Streamlit app → Metric functions: calls metrics
app.py - Scenario controls → Threshold explorer: sets inputs
app.py - Streamlit app → Threshold explorer: renders
app.py - Streamlit app → Shipment round: renders
README.md - Streamlit app → Model showdown: renders
README.md - Streamlit app → Calibration view: renders
README.md - Streamlit app → Data view: renders
README.md - Threshold explorer → Metric functions: evaluates thresholds
app.py - Shipment round → Metric functions: scores picks
app.py - Model showdown → Metric functions: compares models
app.py