# janaakarara/hotel-ml-project architecture

> Architecture diagram of the GitHub repository janaakarara/hotel-ml-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/janaakarara/hotel-ml-project
- Repository: https://github.com/janaakarara/hotel-ml-project

## Overview

This repository is a hotel-booking data preparation and exploratory-analysis project. Its visible workflow loads and verifies the raw H2 dataset, applies deterministic cleaning and validation, and produces processed data; a separate EDA script reads cleaned data to assemble a Markdown report. Configuration centralizes data paths, the download URL, targets, and leakage columns. The excerpts do not show a model-training workflow or the full cleaning/report output wiring, so those relationships are omitted rather than inferred.

Main entry points: [`src/data_loader.py`](https://github.com/janaakarara/hotel-ml-project/blob/main/src/data_loader.py) (Dataset loader), [`eda.py`](https://github.com/janaakarara/hotel-ml-project/blob/main/eda.py) (EDA report generation), [`src/config.py`](https://github.com/janaakarara/hotel-ml-project/blob/main/src/config.py) (Project configuration), [`src/clean.py`](https://github.com/janaakarara/hotel-ml-project/blob/main/src/clean.py) (Schema and rule cleaning)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Data ingestion"]
  node_loader["Dataset loader<br/>[data_loader.py]"]
  node_config["Project configuration<br/>[config.py]"]
  node_raw["Raw H2 dataset<br/>[H2.csv]"]
end

subgraph group_prepare["Data preparation"]
  node_cleaner["Schema and rule cleaning<br/>[clean.py]"]
  node_processed["Processed datasets"]
end

subgraph group_analysis["Exploratory analysis"]
  node_eda["EDA report generation<br/>[eda.py]"]
end

node_user(("Project user"))
node_download(("H2 download source"))

node_user -->|"loads data"| node_loader
node_loader -->|"reads settings"| node_config
node_loader -->|"downloads if missing"| node_download
node_download -.->|"provides dataset"| node_raw
node_cleaner -.->|"writes cleaned data"| node_processed
node_eda -->|"imports loader"| node_loader
node_eda -->|"imports paths"| node_config

click node_loader "https://github.com/janaakarara/hotel-ml-project/blob/main/src/data_loader.py"
click node_config "https://github.com/janaakarara/hotel-ml-project/blob/main/src/config.py"
click node_raw "https://github.com/janaakarara/hotel-ml-project/blob/main/data/raw/H2.csv"
click node_cleaner "https://github.com/janaakarara/hotel-ml-project/blob/main/src/clean.py"
click node_processed "https://github.com/janaakarara/hotel-ml-project/tree/main/data/processed"
click node_eda "https://github.com/janaakarara/hotel-ml-project/blob/main/eda.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_loader,node_config,node_raw,node_user toneBlue
class node_cleaner,node_processed toneAmber
class node_eda toneMint
class node_download toneIndigo
```

## Components

### Data ingestion

- [Dataset loader](https://github.com/janaakarara/hotel-ml-project/blob/main/src/data_loader.py): `src/data_loader.py`
- [Project configuration](https://github.com/janaakarara/hotel-ml-project/blob/main/src/config.py): `src/config.py`
- [Raw H2 dataset](https://github.com/janaakarara/hotel-ml-project/blob/main/data/raw/H2.csv): `data/raw/H2.csv`

### Data preparation

- [Schema and rule cleaning](https://github.com/janaakarara/hotel-ml-project/blob/main/src/clean.py): `src/clean.py`
- [Processed datasets](https://github.com/janaakarara/hotel-ml-project/tree/main/data/processed): `data/processed`

### Exploratory analysis

- [EDA report generation](https://github.com/janaakarara/hotel-ml-project/blob/main/eda.py): `eda.py`

### Other components

- **Project user**
- **H2 download source**

## Connections

- Project user → Dataset loader: loads data (evidence: `src/data_loader.py`)
- Dataset loader → Project configuration: reads settings (evidence: `src/data_loader.py`)
- Dataset loader → H2 download source: downloads if missing (evidence: `src/data_loader.py`)
- H2 download source → Raw H2 dataset: provides dataset
- Schema and rule cleaning → Processed datasets: writes cleaned data (evidence: `src/clean.py`)
- EDA report generation → Dataset loader: imports loader (evidence: `eda.py`)
- EDA report generation → Project configuration: imports paths (evidence: `eda.py`)
