How edubu2/hotel-revman-system works
This repository is a research prototype for hotel revenue management: it turns reservation history into cancellation-aware booking simulations, derives demand-model features, estimates remaining transient demand, and recommends rates for display. The main workflow is supported by the README and sampled source references. Several notebooks and intermediate data-generation steps were not inspected, so links to those are omitted rather than inferred.
Main entry points: st_practice.py Rate recommendation display · model_cancellations.py Cancellation prediction · sim.py Booking simulation · app_funcs.py Pricing data loader
Components 18
Reservation preparation
- Reservation preparation
code/dbds.py - Daily hotel statistics
code/dbds.py - Cancellation features
code/features.py
Booking simulation
- Cancellation prediction
code/model_cancellations.py - Threshold evaluation
code/model_tools.py - Booking simulation
code/sim.py - Simulation utilities
code/sim_utils.py - Saved simulations
code/save_sims.py
Demand and pricing
- Simulation aggregation
code/agg.py - Aggregation definitions
code/agg_utils.py - Demand features
code/demand_features.py - Demand and rate optimization
code/demand.py
Rate display
- Pricing data loader
code/app/app_funcs.py - Display configuration
code/app/app_utils.py - Rate recommendation display
code/app/st_practice.py
Other components
- Analyst
- Hotel reservations
data/H1.csv - Pricing results
Connections 14
- Analyst → Rate recommendation display: views rates
code/app/st_practice.py - Hotel reservations → Reservation preparation: loads reservations
code/dbds.py - Reservation preparation → Daily hotel statistics: builds nightly stats
code/dbds.py - Cancellation prediction → Cancellation features: uses features
code/model_cancellations.py - Cancellation prediction → Threshold evaluation: optimizes threshold
code/model_cancellations.py - Booking simulation → Cancellation prediction: predicts cancellations
code/sim.py - Booking simulation → Simulation utilities: uses utilities
code/sim.py - Saved simulations → Booking simulation: runs simulations
code/save_sims.py - Simulation aggregation → Aggregation definitions: uses definitions
code/agg.py - Demand and rate optimization → Demand features: uses feature sets
code/demand.py - Pricing results → Pricing data loader: reads pricing data
code/app/app_funcs.py - Pricing data loader → Display configuration: selects columns
code/app/app_funcs.py - Rate recommendation display → Pricing data loader: loads rates
code/app/st_practice.py - Rate recommendation display → Display configuration: uses display sets
code/app/st_practice.py