# antonmg4/tfm-airbnb-analisis architecture

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

- Interactive diagram: https://gitdiagram.com/antonmg4/tfm-airbnb-analisis
- Repository: https://github.com/antonmg4/tfm-airbnb-analisis

## Overview

This repository is a documented Airbnb pricing and market-segmentation analysis, not the recommendation app itself. Its principal workflow runs four Quarto analyses in order: clean listings and reviews, enrich listings through review analysis and clustering, then train/evaluate price models and export application artifacts. The README documents dataset handoffs and the app’s use of those artifacts. The supplied excerpts show Quarto’s tabset imports; analysis-code internals are otherwise unsampled, so workflow links rely on the README.

Main entry points: [`TFM_Reviews_ETL.qmd`](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Reviews_ETL.qmd) (Reviews analysis), [`TFM_Clustering.qmd`](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Clustering.qmd) (Clustering analysis), [`TFM_Airbnb_ETL.qmd`](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Airbnb_ETL.qmd) (Listings cleaning), [`TFM_ModeloPrecio.qmd`](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_ModeloPrecio.qmd) (Price modeling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Analysis pipeline"]
  node_raw_listings["Raw listings"]
  node_listings_etl["Listings cleaning<br/>[TFM_Airbnb_ETL.qmd]"]
  node_clean_listings["Clean listings"]
  node_raw_reviews["Raw reviews"]
  node_reviews_etl["Reviews analysis"]
  node_clean_reviews["Clean reviews"]
  node_clustering["Clustering analysis<br/>[TFM_Clustering.qmd]"]
  node_enriched_listings["Enriched listings"]
  node_price_model["Price modeling"]
  node_app_artifacts["Model artifacts"]
end

subgraph group_report_runtime["Report runtime"]
  node_airbnb_quarto["Airbnb report UI<br/>[quarto.js]"]
  node_airbnb_tabs["Airbnb tabsets<br/>[tabsets.js]"]
  node_reviews_quarto["Reviews report UI<br/>[quarto.js]"]
  node_reviews_tabs["Reviews tabsets<br/>[tabsets.js]"]
  node_cluster_quarto["Clustering report UI<br/>[quarto.js]"]
  node_cluster_tabs["Clustering tabsets<br/>[tabsets.js]"]
  node_model_quarto["Model report UI<br/>[quarto.js]"]
  node_model_tabs["Model tabsets<br/>[tabsets.js]"]
end

node_analyst(("Analyst"))
node_price_app["Pricing app"]

node_analyst -->|"runs analysis"| node_listings_etl
node_analyst -->|"runs analysis"| node_reviews_etl
node_analyst -->|"runs analysis"| node_clustering
node_analyst -->|"runs analysis"| node_price_model
node_raw_listings -->|"supplies input"| node_listings_etl
node_listings_etl -->|"writes cleaned data"| node_clean_listings
node_raw_reviews -->|"supplies input"| node_reviews_etl
node_clean_listings -->|"supplies input"| node_reviews_etl
node_reviews_etl -->|"writes cleaned data"| node_clean_reviews
node_clean_listings -->|"supplies input"| node_clustering
node_clean_reviews -->|"supplies input"| node_clustering
node_clustering -->|"writes enriched data"| node_enriched_listings
node_enriched_listings -->|"supplies input"| node_price_model
node_price_model -->|"exports artifacts"| node_app_artifacts
node_price_app -->|"loads artifacts"| node_app_artifacts
node_airbnb_quarto -->|"imports"| node_airbnb_tabs
node_reviews_quarto -->|"imports"| node_reviews_tabs
node_cluster_quarto -->|"imports"| node_cluster_tabs
node_model_quarto -->|"imports"| node_model_tabs

click node_listings_etl "https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Airbnb_ETL.qmd"
click node_reviews_etl "https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Reviews_ETL.qmd"
click node_clustering "https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Clustering.qmd"
click node_price_model "https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_ModeloPrecio.qmd"
click node_airbnb_quarto "https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Airbnb_ETL_files/libs/quarto-html/quarto.js"
click node_airbnb_tabs "https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Airbnb_ETL_files/libs/quarto-html/tabsets/tabsets.js"
click node_reviews_quarto "https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Reviews_ETL_files/libs/quarto-html/quarto.js"
click node_reviews_tabs "https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Reviews_ETL_files/libs/quarto-html/tabsets/tabsets.js"
click node_cluster_quarto "https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Clustering_files/libs/quarto-html/quarto.js"
click node_cluster_tabs "https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Clustering_files/libs/quarto-html/tabsets/tabsets.js"
click node_model_quarto "https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_ModeloPrecio_files/libs/quarto-html/quarto.js"
click node_model_tabs "https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_ModeloPrecio_files/libs/quarto-html/tabsets/tabsets.js"

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_raw_listings,node_listings_etl,node_clean_listings,node_raw_reviews,node_reviews_etl,node_clean_reviews,node_clustering,node_enriched_listings,node_price_model,node_app_artifacts toneBlue
class node_airbnb_quarto,node_airbnb_tabs,node_reviews_quarto,node_reviews_tabs,node_cluster_quarto,node_cluster_tabs,node_model_quarto,node_model_tabs toneAmber
class node_analyst,node_price_app toneIndigo
```

## Components

### Analysis pipeline

- **Raw listings**
- [Listings cleaning](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Airbnb_ETL.qmd): `TFM_Airbnb_ETL.qmd`
- **Clean listings**
- **Raw reviews**
- [Reviews analysis](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Reviews_ETL.qmd): `TFM_Reviews_ETL.qmd`
- **Clean reviews**
- [Clustering analysis](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Clustering.qmd): `TFM_Clustering.qmd`
- **Enriched listings**
- [Price modeling](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_ModeloPrecio.qmd): `TFM_ModeloPrecio.qmd`
- **Model artifacts**

### Report runtime

- [Airbnb report UI](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Airbnb_ETL_files/libs/quarto-html/quarto.js): `TFM_Airbnb_ETL_files/libs/quarto-html/quarto.js`
- [Airbnb tabsets](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Airbnb_ETL_files/libs/quarto-html/tabsets/tabsets.js): `TFM_Airbnb_ETL_files/libs/quarto-html/tabsets/tabsets.js`
- [Reviews report UI](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Reviews_ETL_files/libs/quarto-html/quarto.js): `TFM_Reviews_ETL_files/libs/quarto-html/quarto.js`
- [Reviews tabsets](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Reviews_ETL_files/libs/quarto-html/tabsets/tabsets.js): `TFM_Reviews_ETL_files/libs/quarto-html/tabsets/tabsets.js`
- [Clustering report UI](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Clustering_files/libs/quarto-html/quarto.js): `TFM_Clustering_files/libs/quarto-html/quarto.js`
- [Clustering tabsets](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_Clustering_files/libs/quarto-html/tabsets/tabsets.js): `TFM_Clustering_files/libs/quarto-html/tabsets/tabsets.js`
- [Model report UI](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_ModeloPrecio_files/libs/quarto-html/quarto.js): `TFM_ModeloPrecio_files/libs/quarto-html/quarto.js`
- [Model tabsets](https://github.com/antonmg4/tfm-airbnb-analisis/blob/main/TFM_ModeloPrecio_files/libs/quarto-html/tabsets/tabsets.js): `TFM_ModeloPrecio_files/libs/quarto-html/tabsets/tabsets.js`

### Other components

- **Analyst**
- **Pricing app**

## Connections

- Analyst → Listings cleaning: runs analysis (evidence: `README.md`)
- Analyst → Reviews analysis: runs analysis (evidence: `README.md`)
- Analyst → Clustering analysis: runs analysis (evidence: `README.md`)
- Analyst → Price modeling: runs analysis (evidence: `README.md`)
- Raw listings → Listings cleaning: supplies input (evidence: `README.md`)
- Listings cleaning → Clean listings: writes cleaned data (evidence: `README.md`)
- Raw reviews → Reviews analysis: supplies input (evidence: `README.md`)
- Clean listings → Reviews analysis: supplies input (evidence: `README.md`)
- Reviews analysis → Clean reviews: writes cleaned data (evidence: `README.md`)
- Clean listings → Clustering analysis: supplies input (evidence: `README.md`)
- Clean reviews → Clustering analysis: supplies input (evidence: `README.md`)
- Clustering analysis → Enriched listings: writes enriched data (evidence: `README.md`)
- Enriched listings → Price modeling: supplies input (evidence: `README.md`)
- Price modeling → Model artifacts: exports artifacts (evidence: `README.md`)
- Pricing app → Model artifacts: loads artifacts (evidence: `README.md`)
- Airbnb report UI → Airbnb tabsets: imports (evidence: `TFM_Airbnb_ETL_files/libs/quarto-html/quarto.js`)
- Reviews report UI → Reviews tabsets: imports (evidence: `TFM_Reviews_ETL_files/libs/quarto-html/quarto.js`)
- Clustering report UI → Clustering tabsets: imports (evidence: `TFM_Clustering_files/libs/quarto-html/quarto.js`)
- Model report UI → Model tabsets: imports (evidence: `TFM_ModeloPrecio_files/libs/quarto-html/quarto.js`)
