# aadip-thapaliya/heart-attack-prediction-ue architecture

> Architecture diagram of the GitHub repository aadip-thapaliya/heart-attack-prediction-ue, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-07-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aadip-thapaliya/heart-attack-prediction-ue
- Repository: https://github.com/aadip-thapaliya/heart-attack-prediction-ue

## Overview

##### Project type and purpose
- From the file tree and README (“Heart-Attack-Prediction-UE”), this is a data-science/machine-learning exploration project focused on predicting heart-attack risk.
- It is not a full-stack product or deployed service, but a collection of Jupyter notebooks demonstrating preprocessing, feature engineering, model training (logistic regression, decision trees, random forest, SVM), and evaluation on heart disease datasets.

##### File structure
- Top-level files:
- decision tree.ipynb
- random forest.ipynb
- support vecotor machine.ipynb
- requirement.txt
- README.md & LICENSE
- Subdirectories:
- “logistic regression/” – notebooks (Binary data.ipynb, eda.ipynb) + heart.csv
- “multinomial regression/” – data_download.ipynb, edA.ipynb + CSV/JSON data
- There are no “frontend” or “backend” folders; each algorithm has its own exploratory notebook(s) and local data files.

##### Elements
- Clear, descriptive labels for each pipeline stage and algorithm module

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Data Sources
    subgraph "Data Sources"
        ds1[(heart.csv)]:::data
        ds2[(heart_disease_features.csv)]:::data
        ds3[(heart_disease_targets.csv)]:::data
        ds4[(heart_disease_metadata.json)]:::data
        ds5[(heart_disease_variables.json)]:::data
    end

    %% Data Ingestion & Preprocessing
    subgraph "Data Ingestion & Preprocessing"
        ing1["eda.ipynb (logistic regression)"]:::process
        ing2["data_download.ipynb"]:::process
        ing3["edA.ipynb (multinomial regression)"]:::process
    end

    %% Feature Engineering & Transformation
    subgraph "Feature Engineering & Transformation"
        fe1["Binary data.ipynb"]:::process
        fe2["eda.ipynb (logistic regression)"]:::process
        fe3["edA.ipynb (multinomial regression)"]:::process
    end

    %% Model Training Modules
    subgraph "Model Training Modules"
        subgraph "Logistic Regression Module"
            lr1["Binary data.ipynb"]:::model
            lr2["eda.ipynb"]:::model
        end
        dt["decision tree.ipynb"]:::model
        rf["random forest.ipynb"]:::model
        svm["support vector machine.ipynb"]:::model
    end

    %% Evaluation & Reporting
    eval["Evaluation & Reporting"]:::eval

    %% Environment & Dependencies
    env["requirement.txt"]:::env

    %% Data Flow
    ds1 -->ing1
    ds1 -->fe1
    ds2 -->ing2
    ds3 -->ing2
    ds4 -->ing2
    ds5 -->ing2

    ing1 -->fe2
    ing2 -->ing3
    ing3 -->fe3

    fe1 -->lr1
    fe2 -->lr2
    fe3 -->dt
    fe3 -->rf
    fe3 -->svm

    lr1 -->eval
    lr2 -->eval
    dt -->eval
    rf -->eval
    svm -->eval

    env -.->ing1
    env -.->ing2
    env -.->fe1
    env -.->fe3
    env -.->lr1
    env -.->dt
    env -.->rf
    env -.->svm

    %% Click Events
    click ds1 "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/logistic regression/heart.csv"
    click ds2 "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/multinomial regression/heart_disease_features.csv"
    click ds3 "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/multinomial regression/heart_disease_targets.csv"
    click ds4 "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/multinomial regression/heart_disease_metadata.json"
    click ds5 "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/multinomial regression/heart_disease_variables.json"
    click ing1 "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/logistic regression/eda.ipynb"
    click ing2 "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/multinomial regression/data_download.ipynb"
    click ing3 "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/multinomial regression/edA.ipynb"
    click fe1 "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/logistic regression/Binary data.ipynb"
    click fe2 "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/logistic regression/eda.ipynb"
    click fe3 "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/multinomial regression/edA.ipynb"
    click lr1 "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/logistic regression/Binary data.ipynb"
    click lr2 "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/logistic regression/eda.ipynb"
    click dt "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/decision tree.ipynb"
    click rf "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/random forest.ipynb"
    click svm "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/support vecotor machine.ipynb"
    click env "https://github.com/aadip-thapaliya/heart-attack-prediction-ue/blob/main/requirement.txt"

    %% Styles
    classDef data fill:#FFE4C4,stroke:#CC9A00;
    classDef process fill:#B0E0E6,stroke:#4682B4;
    classDef model fill:#98FB98,stroke:#008000;
    classDef eval fill:#FFD700,stroke:#DAA520;
    classDef env fill:#D3D3D3,stroke:#696969;
```
