# sohail-shaikh-07/house-price-prediction architecture

> Architecture diagram of the GitHub repository sohail-shaikh-07/house-price-prediction, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sohail-shaikh-07/house-price-prediction
- Repository: https://github.com/sohail-shaikh-07/house-price-prediction

## Overview

##### Main Components

a. Data Layer:
- "kc_house_data.csv" as the raw data source
- A data preprocessing component

b. Processing Layer:
- Feature engineering component
- Data splitting (train/test) component
- Model training pipeline

c. Model Layer:
- Machine learning model architecture
- Model evaluation component
- Model persistence (price_test.h5)

d. Interface Layer:
- Jupyter Notebook interface

##### Flow and Relationships

- Data ingestion → Processing → Model Training → Evaluation
- Feedback loops where appropriate (e.g., model tuning)

b. Component Representations:
- Use rectangles for processing components
- Use diamonds for decision points (e.g., model evaluation criteria)

##### Specific Elements

a. Data Flow:
- Raw Data (kc_house_data.csv) →
- Data Preprocessing →
- Feature Engineering →
- Train/Test Split →
- Model Training →
- Model Evaluation →
- Model Storage (price_test.h5)

b. Key Technologies (add as annotations):
- Pandas/NumPy (data processing)
- Scikit-learn (model training)
- TensorFlow/Keras (deep learning)
- Matplotlib (visualization)

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Legend
        direction TB
        L1[Processing Step]
        L2[(Data Storage)]
        L3{Decision Point}
        L4([Technology])
        style L1 fill:#90EE90
        style L2 fill:#ADD8E6
        style L3 fill:#FFD700
        style L4 fill:#D3D3D3
    end

    subgraph Data_Layer
        direction TB
        RawData[(kc_house_data.csv)]:::data
        PreProc[Data Preprocessing]:::process
        RawData --> PreProc
    end

    subgraph Processing_Layer
        direction TB
        FeatEng[Feature Engineering]:::process
        Split[Train/Test Split]:::process
        PreProc --> FeatEng
        FeatEng --> Split
    end

    subgraph Model_Layer
        direction TB
        Train[Model Training]:::process
        Eval{Model Evaluation}:::eval
        ModelStore[(price_test.h5)]:::storage
        Split --> Train
        Train --> Eval
        Eval -->|Save Model| ModelStore
        Eval -->|Tune Model| Train
    end

    subgraph Tech_Stack
        direction TB
        Pandas([Pandas/NumPy]):::tech
        Sklearn([Scikit-learn]):::tech
        TF([TensorFlow/Keras]):::tech
        Viz([Matplotlib]):::tech
    end

    subgraph Interface_Layer
        direction TB
        Notebook[Jupyter Notebook]:::interface
    end

    Requirements[(requirements.txt)]:::config

    %% Component Relationships
    Tech_Stack -.-> Processing_Layer
    Tech_Stack -.-> Model_Layer
    Notebook -.-> Data_Layer
    Notebook -.-> Processing_Layer
    Notebook -.-> Model_Layer

    %% Styling
    classDef data fill:#ADD8E6
    classDef process fill:#90EE90
    classDef eval fill:#FFD700
    classDef storage fill:#D3D3D3
    classDef tech fill:#D3D3D3
    classDef interface fill:#FFA07A
    classDef config fill:#DDA0DD

    %% Click Events
    click RawData "https://github.com/Sohail-Shaikh-07/House-Price-Prediction/blob/main/kc_house_data.csv"
    click ModelStore "https://github.com/Sohail-Shaikh-07/House-Price-Prediction/blob/main/price_test.h5"
    click Notebook "https://github.com/Sohail-Shaikh-07/House-Price-Prediction/blob/main/House_Price_Prediction.ipynb"
    click Requirements "https://github.com/Sohail-Shaikh-07/House-Price-Prediction/blob/main/requirements.txt"
    click PreProc "https://github.com/Sohail-Shaikh-07/House-Price-Prediction/blob/main/House_Price_Prediction.ipynb"
    click FeatEng "https://github.com/Sohail-Shaikh-07/House-Price-Prediction/blob/main/House_Price_Prediction.ipynb"
    click Train "https://github.com/Sohail-Shaikh-07/House-Price-Prediction/blob/main/House_Price_Prediction.ipynb"
```
