# josensae/prediction-des-prix-des-billets-d-avion-en-europe-depuis-paris architecture

> Architecture diagram of the GitHub repository josensae/prediction-des-prix-des-billets-d-avion-en-europe-depuis-paris, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/josensae/prediction-des-prix-des-billets-d-avion-en-europe-depuis-paris
- Repository: https://github.com/josensae/prediction-des-prix-des-billets-d-avion-en-europe-depuis-paris

## Overview

##### Project Type and Purpose
– This is a data-science pipeline, not a traditional client-server application. Its goal is to predict round-trip airplane ticket prices between Paris and five European cities.
– It is built as a sequence of Jupyter notebooks that implement four stages: Webscraping, Data Manipulation (ETL), Data Visualization, and Model Training & Evaluation.

##### File Structure Analysis
Top-level files and folders:
- 1.Webscrapping/ – notebook(s) that scrape Kayak and output raw .xlsx files
- 2.Manipulation de données/ – ETL notebooks that convert text fields to numeric and output “base_a_traiter.xlsx”
- 3.DataViz/ – notebooks generating charts from the cleaned dataset
- 4.Modèle de prédiction/ – two modeling notebooks (Scikit-learn & TensorFlow/Keras) that train and compare models
- .gitignore, README.md, raw and combined Excel data files

##### README Insights
– Clearly describes the four-stage pipeline and the target time window (April–September 2022).
– Specifies external data source (Kayak) and final deliverables (predicted prices).

##### Diagramming the Architecture
- Data Source: Kayak Website
- Ingestion/Raw Data Store: folder of raw .xlsx files (one per destination)
- ETL Layer: “2.Manipulation de données” notebooks + Pandas
- Cleaned Data Store: base_a_traiter.xlsx (intermediate) and data_combined.xlsx
- Visualization Layer: “3.DataViz” notebooks + chart outputs
- Modeling Layer: “4.Modèle de prédiction” notebooks (Scikit-learn & TF/Keras) + trained models
- Results: predicted prices

- Scraper → Raw Data Store
- Raw Data Store → ETL → Cleaned Data Store
- Cleaned Data Store → DataViz (for insights)
- Cleaned Data Store → Modeling → Predictions

c. Architectural Patterns
- Modular notebook per stage for reproducibility

d. Key Technologies
- Python & Jupyter Notebooks
- pandas (ETL), matplotlib/seaborn or Plotly (DataViz)
- scikit-learn, TensorFlow, Keras (Modeling)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% External Data Source
    Kayak["Kayak Website"]:::external

    %% Ingestion Layer
    subgraph "1. Ingestion Layer"
        RawNotebook["Webscraping Notebook"]:::compute
        RawStore["Raw Data Store<br/>(.xlsx files)"]:::storage
    end

    %% ETL Layer
    subgraph "2. ETL Layer"
        ETLNotebook["ETL Notebook"]:::compute
    end

    %% Cleaned Data Store
    subgraph "3. Cleaned Data Store"
        BaseExcel["base_a_traiter.xlsx"]:::storage
        CombinedExcel["data-combined.xlsx"]:::storage
    end

    %% Visualization Layer
    subgraph "4. Visualization Layer"
        DataVizNotebook["DataViz Notebook"]:::compute
    end

    %% Modeling Layer
    subgraph "5. Modeling Layer"
        ScikitNotebook["Modeling Scikit-learn Notebook"]:::ml
        TFNotebook["Modeling TensorFlow/Keras Notebook"]:::ml
    end

    %% Results
    Results["Predicted Prices"]:::storage

    %% Documentation
    README["README.md"]:::external

    %% Data Flow Connections
    Kayak --> RawNotebook
    RawNotebook --> RawStore
    RawStore --> ETLNotebook
    ETLNotebook --> BaseExcel
    BaseExcel --> CombinedExcel
    CombinedExcel --> DataVizNotebook
    CombinedExcel --> ScikitNotebook
    CombinedExcel --> TFNotebook
    ScikitNotebook --> Results
    TFNotebook --> Results

    %% Click Events
    click RawNotebook "https://github.com/josensae/prediction-des-prix-des-billets-d-avion-en-europe-depuis-paris/tree/main/1.Webscrapping/"
    click ETLNotebook "https://github.com/josensae/prediction-des-prix-des-billets-d-avion-en-europe-depuis-paris/blob/main/2.Manipulation de données/Formatage des données.ipynb"
    click DataVizNotebook "https://github.com/josensae/prediction-des-prix-des-billets-d-avion-en-europe-depuis-paris/blob/main/3.DataViz/DataViz_.ipynb"
    click ScikitNotebook "https://github.com/josensae/prediction-des-prix-des-billets-d-avion-en-europe-depuis-paris/blob/main/4.Modèle de prédiction/Modélisation_Scikit-learn.ipynb"
    click TFNotebook "https://github.com/josensae/prediction-des-prix-des-billets-d-avion-en-europe-depuis-paris/blob/main/4.Modèle de prédiction/Modèle_Tensorflow_et_keras.ipynb"
    click README "https://github.com/josensae/prediction-des-prix-des-billets-d-avion-en-europe-depuis-paris/blob/main/README.md"

    %% Styles
    classDef external fill:#d3d3d3,stroke:#999,stroke-width:2px;
    classDef storage fill:#ADD8E6,stroke:#0376fc,stroke-width:2px;
    classDef compute fill:#90ee90,stroke:#0a7f07,stroke-width:2px;
    classDef ml fill:#ffa500,stroke:#cc8400,stroke-width:2px;
```
