Annotated workflow
ReportThe process diagrams with numbered, plain-language notes. Start here if you want the picture.

Annotated Workflow
Predicting Hotel Booking No-Shows to Optimize Overbooking Decisions
This document walks through the Altair AI Studio processes used in the project. Each screenshot has numbered
notes in plain language. No prior knowledge of the tool is needed.
How to read a process diagram
Each pink or green box is an operator: one action on the data. The lines between boxes carry data (or a trained
model) from one step to the next. The tool runs the boxes in the order the lines connect them. A green check
mark on a box means it is set up correctly.
The whole project in four stages
Stage What happens Where to look
1. Prepare Load data, keep City Hotel, build the No_Show target, remove Page 2
canceled bookings, add 3 features, drop leaking columns, split
60/20/20
2. Baseline + first Predict 'nobody no-shows' as the bar to beat; first logistic Page 4
model regression
3. Tournament Six models trained on the same data and scored on the same Pages 5 to 6
validation set
4. Judge in dollars Convert each model's errors to cost and compare with doing Page 7
nothing
Key numbers
Item Value
Source data Kaggle Hotel Booking Demand: 119,390 rows, 32 columns
City Hotel only 79,330 rows
After removing canceled bookings 47,144 rows: 916 no-shows (1.94%), 46,228 check-outs
(modeling set)
Split (stratified, seed 2001) Train 60% (28,286) | Validation 20% (9,428) | Holdout 20% (not
scored)
Validation set 9,428 reservations, of which 183 are no-shows
Everything in this package is a validation result. The holdout set has not been scored, and every model used its
default classification cutoff.
Hotel No-Show Prediction | Annotated Workflow | Bhakta Lama Page 1
1. Data preparation workflow
Figure 1. Data preparation process (Segment 2). Red numbers match the notes below.
# Operator What it does, in plain words
1 Retrieve Loads the Kaggle table: 119,390 reservations. (The yellow warning triangle only
means the data type list was auto-detected.)
2 Filter Examples Keeps only City Hotel bookings (79,330). The charter scoped the project to City
Hotel.
3 Generate Attributes Creates the target No_Show: 1 if reservation_status is 'No-Show', else 0.
4 Filter Examples Removes reservations with status Canceled (32,186). A canceled booking is not a no-
show. Leaves 47,144.
5 Generate Attributes total_guests = adults + children + babies.
6 Generate Attributes total_nights = weekend nights + weeknights.
7 Generate Attributes commitment_score = booking_changes + total_of_special_requests.
8 Select Attributes Drops the leakage columns: reservation_status, reservation_status_date,
assigned_room_type, is_canceled.
9 Set Role Tells the tool that No_Show is the label, the thing to predict.
10 Split Data Stratified split into 60% train, 20% validation, 20% holdout, seed 2001. Stratified
means each part keeps the 1.94% no-show rate.
Hotel No-Show Prediction | Annotated Workflow | Bhakta Lama Page 2
2. Target, split and first models Creating the target (Generate Attributes, step 3) Figure 2. The rule that builds No_Show from reservation_status. Split settings (Split Data, step 10) Figure 3. Partition ratios 0.6 / 0.2 / 0.2 with stratified sampling. Hotel No-Show Prediction | Annotated Workflow | Bhakta Lama Page 3

3. Baseline and first logistic regression (Segment 3)
Figure 4. Segment 3 process: preparation row, then Logistic Regression, Apply Model and Performance.
Part What it does
Preparation operators Same ten preparation steps as page 2 (the last operator is Split Data).
Logistic Regression Learns from the 60% training part.
Apply Model Uses the learned model to score the 20% validation part.
Performance (Classification) Counts correct and wrong predictions: accuracy, precision, recall, confusion
matrix.
Naive baseline (not drawn) Predicts 'no no-show' for every booking: 98.06% accuracy, 0% precision, 0%
recall. It is the number every model must beat in cost.
The leakage story. The first version of this process scored 100% on every measure (9,245 true No, 183 true
Yes, no errors). That was a leak: is_canceled and reservation_status-derived columns were still in the data.
Removing them (step 8) produced the realistic results used everywhere else.
Hotel No-Show Prediction | Annotated Workflow | Bhakta Lama Page 4
4. The model tournament (Segments 5 and 6) Figure 5. Tournament I (Segment 5): one prepared dataset feeds four model families; each goes through Apply Model and Performance. Figure 6. Final process (Segment 6): the same tournament plus the neural network branch (Nominal to Numerical, Replace Missing Values, Neural Net). Hotel No-Show Prediction | Annotated Workflow | Bhakta Lama Page 5

Reading the tournament diagrams
What you see What it means
Top row of pink boxes The preparation steps from page 2, run once.
Select Attributes, Set Role, Split Data Leakage columns dropped, label set, data split.
Multiply Copies the same training and validation data to every model so the
comparison is fair.
Green model boxes Logistic Regression, Decision Tree (depth 7), Random Forest (200
trees), Naive Bayes, Neural Net (30 neurons).
Apply Model Scores the validation part with that model.
Yellow Performance boxes Produce accuracy, precision, recall and the confusion matrix for each
model.
Nominal to Numerical + Replace Extra preparation only the neural network needs.
Missing Values
Holdout partition Not connected to any model. It stays untouched.
What was tuned
Model Tested Chosen Why
Decision tree Depth 3, 5, 7 7 Highest recall while keeping 80% precision
Random forest 50, 100, 200 trees 200 All three gave identical results (no no-shows
found)
Neural network 10, 20, 30 hidden neurons 30 Highest recall with acceptable precision; the
20-neuron result rested on 2 flagged
reservations
Logistic regression, Defaults only default Used as benchmarks
Naive Bayes
Hotel No-Show Prediction | Annotated Workflow | Bhakta Lama Page 6
5. Plain-table leaderboard and cost
Validation set, n = 9,428 reservations (183 actual no-shows). Cost = false alarms x $150 + missed no-shows x
$80.
Model Accuracy Precision Recall Caught False Missed Cost per
alarms booking
Naive baseline 98.06% 0.00% 0.00% 0 0 183 $1.55
Logistic regression 97.46% 30.56% 24.04% 44 100 139 $2.77
Decision tree (depth 7) 98.12% 80.00% 4.37% 8 2 175 $1.52
Random forest (200 trees) 98.06% 0.00% 0.00% 0 0 183 $1.55
Naive Bayes 23.63% 2.44% 98.36% 180 7,197 3 $114.53
Neural network (30 98.07% 51.85% 7.65% 14 13 169 $1.64
neurons)
How to read it
Only the decision tree beats doing nothing on cost, and only by about $340 in total because it flags just 10
reservations. Logistic regression is the only model that catches a meaningful share of no-shows (24%), so it is
the one recommended to build on. At the default cutoff it costs more than doing nothing: it pays off only if
catching a no-show is worth more than about $341, versus the $40 to $120 estimated.
Recommendation (conditional): carry logistic regression forward, but do not use it for live decisions until the
cutoff is tuned, the holdout is scored once, real cost figures replace the estimates, and a shadow-mode trial
confirms it beats the current process.
Break-even check Value of a caught no-show
Logistic regression vs doing nothing about $341 (100 x $150 = 44 x X)
Logistic regression vs decision tree about $408 (100x150 + 139X = 2x150 + 175X)
Neural network vs doing nothing about $139
Decision tree vs doing nothing about $38
The same table is in leaderboard/leaderboard.md and leaderboard/leaderboard.csv, and scripts/cost_check.py
recomputes it from the confusion matrices.
Hotel No-Show Prediction | Annotated Workflow | Bhakta Lama Page 7