# tharuni28-hub/heart-disease-prediction architecture

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

- Interactive diagram: https://gitdiagram.com/tharuni28-hub/heart-disease-prediction
- Repository: https://github.com/tharuni28-hub/heart-disease-prediction

## Overview

This is a Jupyter-based heart-disease prediction project. The documented workflow loads and preprocesses patient data, explores it, scales features, trains several classifiers, and evaluates their performance. The notebook is the only implementation file shown; the CSV is the supplied dataset. No notebook cells or source excerpts were provided, so links between implementation stages reflect the README’s workflow, not inspected calls.

Main entry points: [`project.ipynb`](https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb) (Data preprocessing), [`cardio_train.csv`](https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/cardio_train.csv) (Patient dataset)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_notebook["Prediction notebook<br/>[project.ipynb]"]
  node_dataset["Patient dataset<br/>[cardio_train.csv]"]
  node_preprocessing["Data preprocessing<br/>[project.ipynb]"]
  node_eda["Exploratory analysis<br/>[project.ipynb]"]
  node_scaling["Feature scaling<br/>[project.ipynb]"]
end

subgraph group_models["Model training"]
  node_training["Model training<br/>[project.ipynb]"]
  node_classifiers["Classifiers<br/>[project.ipynb]"]
end

subgraph group_analysis["Evaluation"]
  node_evaluation["Performance evaluation<br/>[project.ipynb]"]
end

node_user(("Notebook user"))

node_user -->|"runs"| node_notebook
node_dataset -.->|"supplies data"| node_preprocessing
node_preprocessing -->|"precedes"| node_eda
node_eda -->|"precedes"| node_scaling
node_scaling -->|"precedes"| node_training
node_training -->|"trains"| node_classifiers
node_classifiers -->|"evaluated by"| node_evaluation

click node_notebook "https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb"
click node_dataset "https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/cardio_train.csv"
click node_preprocessing "https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb"
click node_eda "https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb"
click node_scaling "https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb"
click node_training "https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb"
click node_classifiers "https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb"
click node_evaluation "https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb"

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_notebook,node_dataset,node_preprocessing,node_eda,node_scaling,node_user toneBlue
class node_training,node_classifiers toneAmber
class node_evaluation toneMint
```

## Components

### Data preparation

- [Prediction notebook](https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb): `project.ipynb`
- [Patient dataset](https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/cardio_train.csv): `cardio_train.csv`
- [Data preprocessing](https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb): `project.ipynb`
- [Exploratory analysis](https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb): `project.ipynb`
- [Feature scaling](https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb): `project.ipynb`

### Model training

- [Model training](https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb): `project.ipynb`
- [Classifiers](https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb): `project.ipynb`

### Evaluation

- [Performance evaluation](https://github.com/tharuni28-hub/heart-disease-prediction/blob/main/project.ipynb): `project.ipynb`

### Other components

- **Notebook user**

## Connections

- Notebook user → Prediction notebook: runs (evidence: `README.md`)
- Patient dataset → Data preprocessing: supplies data
- Data preprocessing → Exploratory analysis: precedes (evidence: `README.md`)
- Exploratory analysis → Feature scaling: precedes (evidence: `README.md`)
- Feature scaling → Model training: precedes (evidence: `README.md`)
- Model training → Classifiers: trains (evidence: `README.md`)
- Classifiers → Performance evaluation: evaluated by (evidence: `README.md`)
