# yeshwanthdandu180903/house_price_prediction_2 architecture

> Architecture diagram of the GitHub repository yeshwanthdandu180903/house_price_prediction_2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yeshwanthdandu180903/house_price_prediction_2
- Repository: https://github.com/yeshwanthdandu180903/house_price_prediction_2

## Overview

##### Project type and purpose
- This is a machine-learning based “House Price Prediction” project.
- It ingests raw CSV data, applies preprocessing (imputation, scaling, encoding), trains a regression model in a Jupyter notebook, serializes model artifacts, and exposes a prediction endpoint via a Python app.

##### File structure
- Top level
- README.md (project title)
- data/ (all ML code, data, artifacts, and requirements)
- data/ contains
- House_price_prediction.ipynb – interactive train & evaluate notebook
- train.csv, test.csv, sample_submission.csv – raw data sources
- data_description.txt – schema & feature info
- imputer.pkl, scaler.pkl, encoded_columns.json – preprocessing artefacts
- house_price_model.pkl – trained model
- app.py – prediction service
- check.py – evaluation/verification script
- requirements.txt – Python dependencies

##### Examining the README
- No detailed architecture section. Name implies this is a standalone ML service for predicting house prices.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Offline / Batch Lane
    subgraph "Offline / Batch"
        subgraph "Data Sources"
            train("train.csv"):::datastore
            test("test.csv"):::datastore
            sample("sample_submission.csv"):::datastore
            desc("data_description.txt"):::datastore
        end
        train --> imputer
        test --> imputer
        desc --> imputer

        imputer("Imputer"):::compute --> imputer_art("imputer.pkl"):::datastore
        scaler("Scaler"):::compute --> scaler_art("scaler.pkl"):::datastore
        encoder("Encoder Metadata"):::compute --> encoder_art("encoded_columns.json"):::datastore

        imputer_art --> notebook
        scaler_art --> notebook
        encoder_art --> notebook

        notebook("House_price_prediction.ipynb"):::compute --> model_art("house_price_model.pkl"):::datastore
    end

    %% Online / Serving Lane
    subgraph "Online / Serving"
        app("app.py (Prediction Service)"):::compute
        model_art --> app
        imputer_art --> app
        scaler_art --> app
        encoder_art --> app
        clients("External Clients"):::external
        clients -->|API Request| app
        app -->|Response| clients
    end

    %% Validation / Evaluation
    check("check.py"):::eval
    sample --> check
    imputer_art --> check
    scaler_art --> check
    encoder_art --> check
    model_art --> check

    %% Click events
    click train "https://github.com/yeshwanthdandu180903/house_price_prediction_2/blob/main/data/train.csv"
    click test "https://github.com/yeshwanthdandu180903/house_price_prediction_2/blob/main/data/test.csv"
    click sample "https://github.com/yeshwanthdandu180903/house_price_prediction_2/blob/main/data/sample_submission.csv"
    click desc "https://github.com/yeshwanthdandu180903/house_price_prediction_2/blob/main/data/data_description.txt"
    click imputer_art "https://github.com/yeshwanthdandu180903/house_price_prediction_2/blob/main/data/imputer.pkl"
    click scaler_art "https://github.com/yeshwanthdandu180903/house_price_prediction_2/blob/main/data/scaler.pkl"
    click encoder_art "https://github.com/yeshwanthdandu180903/house_price_prediction_2/blob/main/data/encoded_columns.json"
    click notebook "https://github.com/yeshwanthdandu180903/house_price_prediction_2/blob/main/data/House_price_prediction.ipynb"
    click model_art "https://github.com/yeshwanthdandu180903/house_price_prediction_2/blob/main/data/house_price_model.pkl"
    click app "https://github.com/yeshwanthdandu180903/house_price_prediction_2/blob/main/data/app.py"
    click check "https://github.com/yeshwanthdandu180903/house_price_prediction_2/blob/main/data/check.py"

    %% Styles
    classDef datastore fill:#bbdefb,stroke:#1e88e5;
    classDef compute fill:#c8e6c9,stroke:#2e7d32;
    classDef eval fill:#fff9c4,stroke:#fbc02d,stroke-dasharray:5 5;
    classDef external fill:#ffe0b2,stroke:#fb8c00;
```
