# pavan-r1/house-price-mlops architecture

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

- Interactive diagram: https://gitdiagram.com/pavan-r1/house-price-mlops
- Repository: https://github.com/pavan-r1/house-price-mlops

## Overview

The implemented runtime is a small FastAPI service: a client submits house features and receives a fixed price, not a model-generated prediction. A separate preprocessing module defines a scikit-learn pipeline but is not connected to the API or training. The README describes a broader training, artifact, and DVC workflow; those links are shown as documented but unverified. The training file is empty, and build/CI machinery is omitted.

Main entry points: [`app/main.py`](https://github.com/pavan-r1/house-price-mlops/blob/main/app/main.py) (FastAPI endpoint), [`src/train.py`](https://github.com/pavan-r1/house-price-mlops/blob/main/src/train.py) (Model training), [`src/preprocess.py`](https://github.com/pavan-r1/house-price-mlops/blob/main/src/preprocess.py) (Preprocessing pipeline), [`dvc.yaml`](https://github.com/pavan-r1/house-price-mlops/blob/main/dvc.yaml) (DVC pipeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_serving["Prediction service"]
  node_api["FastAPI endpoint<br/>[main.py]"]
  node_price["Fixed price response<br/>[main.py]"]
end

subgraph group_ml["ML workflow"]
  node_preprocessing["Preprocessing pipeline<br/>[preprocess.py]"]
  node_training["Model training<br/>[train.py]"]
  node_artifact["Trained model artifact"]
end

subgraph group_versioning["Data versioning"]
  node_dvc["DVC pipeline<br/>[dvc.yaml]"]
end

node_client(("API client"))

node_client -->|"submits features"| node_api
node_api -->|"returns fixed price"| node_price
node_preprocessing -.->|"prepares features"| node_training
node_training -.->|"produces model"| node_artifact
node_artifact -.->|"serves predictions"| node_api
node_dvc -.->|"versions pipeline"| node_training

click node_api "https://github.com/pavan-r1/house-price-mlops/blob/main/app/main.py"
click node_price "https://github.com/pavan-r1/house-price-mlops/blob/main/app/main.py"
click node_preprocessing "https://github.com/pavan-r1/house-price-mlops/blob/main/src/preprocess.py"
click node_training "https://github.com/pavan-r1/house-price-mlops/blob/main/src/train.py"
click node_dvc "https://github.com/pavan-r1/house-price-mlops/blob/main/dvc.yaml"

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_api,node_price,node_client toneBlue
class node_preprocessing,node_training,node_artifact toneAmber
class node_dvc toneMint
```

## Components

### Prediction service

- [FastAPI endpoint](https://github.com/pavan-r1/house-price-mlops/blob/main/app/main.py): `app/main.py`
- [Fixed price response](https://github.com/pavan-r1/house-price-mlops/blob/main/app/main.py): `app/main.py`

### ML workflow

- [Preprocessing pipeline](https://github.com/pavan-r1/house-price-mlops/blob/main/src/preprocess.py): `src/preprocess.py`
- [Model training](https://github.com/pavan-r1/house-price-mlops/blob/main/src/train.py): `src/train.py`
- **Trained model artifact**

### Data versioning

- [DVC pipeline](https://github.com/pavan-r1/house-price-mlops/blob/main/dvc.yaml): `dvc.yaml`

### Other components

- **API client**

## Connections

- API client → FastAPI endpoint: submits features (evidence: `app/main.py`)
- FastAPI endpoint → Fixed price response: returns fixed price (evidence: `app/main.py`)
- Preprocessing pipeline → Model training: prepares features (evidence: `README.md`)
- Model training → Trained model artifact: produces model (evidence: `README.md`)
- Trained model artifact → FastAPI endpoint: serves predictions (evidence: `README.md`)
- DVC pipeline → Model training: versions pipeline (evidence: `README.md`)
