# shaikanees7/hotel_booking_mlop architecture

> Architecture diagram of the GitHub repository shaikanees7/hotel_booking_mlop, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shaikanees7/hotel_booking_mlop
- Repository: https://github.com/shaikanees7/hotel_booking_mlop

## Overview

This is a hotel-booking cancellation prediction MLOps project. Its user-facing workflow runs reproducible lab pipelines: load and validate booking data, prepare features, train and evaluate cancellation models, track experiments, then register and promote models using recall. The graph also preserves the documented baseline, reproducibility, production preprocessing, and deployment-report branches. Edges follow excerpts or README statements; unsampled implementation details are represented only at their supported paths.

Main entry points: [`src/config.py`](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/config.py) (Shared config), [`pipelines/run_all.py`](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/pipelines/run_all.py) (Full workflow), [`pipelines/run_lab3_baseline.py`](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/pipelines/run_lab3_baseline.py) (Baseline workflow), [`pipelines/run_lab4_tracking.py`](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/pipelines/run_lab4_tracking.py) (Tracking workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_rawdata[("Booking CSV<br/>[hotel_bookings.csv]")]
  node_config["Shared config<br/>[config.py]"]
  node_schema["Schema validation<br/>[validate_data.py]"]
  node_baselineprep["Baseline preprocessing<br/>[preprocess.py]"]
  node_productionprep["Pipeline preprocessing"]
  node_outputcheck["Output validation"]
end

subgraph group_modeling["Modeling and tracking"]
  node_baseline["Baseline training<br/>[train.py]"]
  node_evaluation["Model evaluation<br/>[evaluate.py]"]
  node_tracking["MLflow training<br/>[train_mlflow.py]"]
  node_repro["Reproducibility check"]
end

subgraph group_lifecycle["Registry lifecycle"]
  node_registrytrain["Registry training<br/>[train_registry.py]"]
  node_lifecyclemanager["Champion promotion"]
  node_report["Deployment report"]
  node_mlflow[("MLflow tracking and registry")]
end

subgraph group_orchestration["Pipeline orchestration"]
  node_runner["Pipeline runner<br/>[pipeline_utils.py]"]
  node_lab3["Baseline workflow"]
  node_lab4["Tracking workflow"]
  node_lab5["Production workflow"]
  node_lab6["Registry workflow"]
  node_all["Full workflow<br/>[run_all.py]"]
end

node_engineer(("Project user"))

node_engineer -->|"starts"| node_lab3
node_engineer -->|"starts"| node_lab4
node_engineer -->|"starts"| node_lab5
node_engineer -->|"starts"| node_lab6
node_engineer -->|"starts"| node_all
node_lab3 -->|"invokes"| node_runner
node_lab4 -->|"invokes"| node_runner
node_lab5 -->|"invokes"| node_runner
node_lab6 -->|"invokes"| node_runner
node_all -->|"invokes"| node_runner
node_rawdata -->|"supplies"| node_schema
node_rawdata -->|"loads"| node_config
node_config -->|"configures"| node_baselineprep
node_config -->|"configures"| node_productionprep
node_config -->|"configures"| node_baseline
node_config -->|"configures"| node_evaluation
node_config -->|"configures"| node_tracking
node_config -->|"configures"| node_repro
node_config -->|"configures"| node_registrytrain
node_config -->|"configures"| node_lifecyclemanager
node_config -->|"configures"| node_report
node_lab3 -->|"runs"| node_baselineprep
node_lab3 -->|"runs"| node_baseline
node_lab3 -->|"runs"| node_evaluation
node_lab4 -->|"runs"| node_baselineprep
node_lab4 -->|"runs"| node_tracking
node_lab4 -->|"runs"| node_repro
node_lab5 -->|"runs"| node_schema
node_lab5 -->|"runs"| node_productionprep
node_lab5 -->|"runs"| node_outputcheck
node_lab6 -->|"runs"| node_registrytrain
node_lab6 -->|"runs"| node_lifecyclemanager
node_lab6 -->|"runs"| node_report
node_all -->|"runs"| node_lab3
node_all -->|"runs"| node_lab4
node_all -->|"runs"| node_lab5
node_all -->|"runs"| node_lab6
node_registrytrain -->|"logs and registers"| node_mlflow
node_tracking -.->|"tracks runs"| node_mlflow
node_lifecyclemanager -->|"promotes versions"| node_mlflow
node_report -.->|"reports registry"| node_mlflow
node_productionprep -->|"prepares outputs"| node_outputcheck

click node_rawdata "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/data/raw/hotel_bookings.csv"
click node_config "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/config.py"
click node_schema "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/validate_data.py"
click node_baselineprep "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/preprocess.py"
click node_productionprep "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/preprocess_pipeline.py"
click node_outputcheck "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/validate_outputs.py"
click node_baseline "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/train.py"
click node_evaluation "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/evaluate.py"
click node_tracking "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/train_mlflow.py"
click node_repro "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/validate_reproducibility.py"
click node_registrytrain "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/train_registry.py"
click node_lifecyclemanager "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/automate_lifecycle.py"
click node_report "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/generate_registry_report.py"
click node_runner "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/pipeline_utils.py"
click node_lab3 "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/pipelines/run_lab3_baseline.py"
click node_lab4 "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/pipelines/run_lab4_tracking.py"
click node_lab5 "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/pipelines/run_lab5_pipeline.py"
click node_lab6 "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/pipelines/run_lab6_registry.py"
click node_all "https://github.com/shaikanees7/hotel_booking_mlop/blob/main/pipelines/run_all.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_rawdata,node_config,node_schema,node_baselineprep,node_productionprep,node_outputcheck,node_engineer toneBlue
class node_baseline,node_evaluation,node_tracking,node_repro toneAmber
class node_registrytrain,node_lifecyclemanager,node_report,node_mlflow toneMint
class node_runner,node_lab3,node_lab4,node_lab5,node_lab6,node_all toneRose
```

## Components

### Data preparation

- [Booking CSV](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/data/raw/hotel_bookings.csv): `data/raw/hotel_bookings.csv`
- [Shared config](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/config.py): `src/config.py`
- [Schema validation](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/validate_data.py): `src/validate_data.py`
- [Baseline preprocessing](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/preprocess.py): `src/preprocess.py`
- [Pipeline preprocessing](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/preprocess_pipeline.py): `src/preprocess_pipeline.py`
- [Output validation](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/validate_outputs.py): `src/validate_outputs.py`

### Modeling and tracking

- [Baseline training](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/train.py): `src/train.py`
- [Model evaluation](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/evaluate.py): `src/evaluate.py`
- [MLflow training](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/train_mlflow.py): `src/train_mlflow.py`
- [Reproducibility check](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/validate_reproducibility.py): `src/validate_reproducibility.py`

### Registry lifecycle

- [Registry training](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/train_registry.py): `src/train_registry.py`
- [Champion promotion](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/automate_lifecycle.py): `src/automate_lifecycle.py`
- [Deployment report](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/generate_registry_report.py): `src/generate_registry_report.py`
- **MLflow tracking and registry**

### Pipeline orchestration

- [Pipeline runner](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/src/pipeline_utils.py): `src/pipeline_utils.py`
- [Baseline workflow](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/pipelines/run_lab3_baseline.py): `pipelines/run_lab3_baseline.py`
- [Tracking workflow](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/pipelines/run_lab4_tracking.py): `pipelines/run_lab4_tracking.py`
- [Production workflow](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/pipelines/run_lab5_pipeline.py): `pipelines/run_lab5_pipeline.py`
- [Registry workflow](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/pipelines/run_lab6_registry.py): `pipelines/run_lab6_registry.py`
- [Full workflow](https://github.com/shaikanees7/hotel_booking_mlop/blob/main/pipelines/run_all.py): `pipelines/run_all.py`

### Other components

- **Project user**

## Connections

- Project user → Baseline workflow: starts (evidence: `README.md`)
- Project user → Tracking workflow: starts (evidence: `README.md`)
- Project user → Production workflow: starts (evidence: `README.md`)
- Project user → Registry workflow: starts (evidence: `README.md`)
- Project user → Full workflow: starts (evidence: `README.md`)
- Baseline workflow → Pipeline runner: invokes (evidence: `pipelines/run_lab3_baseline.py`)
- Tracking workflow → Pipeline runner: invokes (evidence: `pipelines/run_lab4_tracking.py`)
- Production workflow → Pipeline runner: invokes (evidence: `pipelines/run_lab5_pipeline.py`)
- Registry workflow → Pipeline runner: invokes (evidence: `pipelines/run_lab6_registry.py`)
- Full workflow → Pipeline runner: invokes (evidence: `pipelines/run_all.py`)
- Booking CSV → Schema validation: supplies (evidence: `src/validate_data.py`)
- Booking CSV → Shared config: loads (evidence: `src/config.py`)
- Shared config → Baseline preprocessing: configures (evidence: `src/preprocess.py`)
- Shared config → Pipeline preprocessing: configures (evidence: `src/preprocess_pipeline.py`)
- Shared config → Baseline training: configures (evidence: `src/train.py`)
- Shared config → Model evaluation: configures (evidence: `src/evaluate.py`)
- Shared config → MLflow training: configures (evidence: `src/train_mlflow.py`)
- Shared config → Reproducibility check: configures (evidence: `src/validate_reproducibility.py`)
- Shared config → Registry training: configures (evidence: `src/train_registry.py`)
- Shared config → Champion promotion: configures (evidence: `src/automate_lifecycle.py`)
- Shared config → Deployment report: configures (evidence: `src/generate_registry_report.py`)
- Baseline workflow → Baseline preprocessing: runs (evidence: `pipelines/run_lab3_baseline.py`)
- Baseline workflow → Baseline training: runs (evidence: `pipelines/run_lab3_baseline.py`)
- Baseline workflow → Model evaluation: runs (evidence: `pipelines/run_lab3_baseline.py`)
- Tracking workflow → Baseline preprocessing: runs (evidence: `pipelines/run_lab4_tracking.py`)
- Tracking workflow → MLflow training: runs (evidence: `pipelines/run_lab4_tracking.py`)
- Tracking workflow → Reproducibility check: runs (evidence: `pipelines/run_lab4_tracking.py`)
- Production workflow → Schema validation: runs (evidence: `pipelines/run_lab5_pipeline.py`)
- Production workflow → Pipeline preprocessing: runs (evidence: `pipelines/run_lab5_pipeline.py`)
- Production workflow → Output validation: runs (evidence: `pipelines/run_lab5_pipeline.py`)
- Registry workflow → Registry training: runs (evidence: `pipelines/run_lab6_registry.py`)
- Registry workflow → Champion promotion: runs (evidence: `pipelines/run_lab6_registry.py`)
- Registry workflow → Deployment report: runs (evidence: `pipelines/run_lab6_registry.py`)
- Full workflow → Baseline workflow: runs (evidence: `pipelines/run_all.py`)
- Full workflow → Tracking workflow: runs (evidence: `pipelines/run_all.py`)
- Full workflow → Production workflow: runs (evidence: `pipelines/run_all.py`)
- Full workflow → Registry workflow: runs (evidence: `pipelines/run_all.py`)
- Registry training → MLflow tracking and registry: logs and registers (evidence: `src/train_registry.py`)
- MLflow training → MLflow tracking and registry: tracks runs (evidence: `README.md`)
- Champion promotion → MLflow tracking and registry: promotes versions (evidence: `src/automate_lifecycle.py`)
- Deployment report → MLflow tracking and registry: reports registry (evidence: `README.md`)
- Pipeline preprocessing → Output validation: prepares outputs (evidence: `README.md`)
