# chandanghub/breast-cancer-using-neural-network architecture

> Architecture diagram of the GitHub repository chandanghub/breast-cancer-using-neural-network, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chandanghub/breast-cancer-using-neural-network
- Repository: https://github.com/chandanghub/breast-cancer-using-neural-network

## Overview

This is a small Streamlit breast-cancer prediction app. Users enter 30 tumor measurements, submit them, and receive a malignant/benign result. The single runtime module gathers inputs, scales them with the saved scaler, predicts with the loaded neural-network model, and displays the result. The relationships shown are explicit in the app source; model and scaler files are represented as local assets, not separate software subsystems.

Main entry points: [`breast_cancer_NN__public_webapp.py`](https://github.com/chandanghub/breast-cancer-using-neural-network/blob/main/breast_cancer_NN__public_webapp.py) (Streamlit app), [`scaler.sav`](https://github.com/chandanghub/breast-cancer-using-neural-network/blob/main/scaler.sav) (Saved scaler), [`breast_cancer_model.h5`](https://github.com/chandanghub/breast-cancer-using-neural-network/blob/main/breast_cancer_model.h5) (Neural-network model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User interface"]
  node_app["Streamlit app"]
end

subgraph group_inference["Prediction"]
  node_scaler["Saved scaler<br/>[scaler.sav]"]
  node_model["Neural-network model"]
end

node_user(("User"))

node_user -->|"enters measurements"| node_app
node_app -->|"scales inputs"| node_scaler
node_app -->|"predicts tumor class"| node_model
node_app -->|"displays result"| node_user

click node_app "https://github.com/chandanghub/breast-cancer-using-neural-network/blob/main/breast_cancer_NN__public_webapp.py"
click node_scaler "https://github.com/chandanghub/breast-cancer-using-neural-network/blob/main/scaler.sav"
click node_model "https://github.com/chandanghub/breast-cancer-using-neural-network/blob/main/breast_cancer_model.h5"

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_app,node_user toneBlue
class node_scaler,node_model toneAmber
```

## Components

### User interface

- [Streamlit app](https://github.com/chandanghub/breast-cancer-using-neural-network/blob/main/breast_cancer_NN__public_webapp.py): `breast_cancer_NN__public_webapp.py`

### Prediction

- [Saved scaler](https://github.com/chandanghub/breast-cancer-using-neural-network/blob/main/scaler.sav): `scaler.sav`
- [Neural-network model](https://github.com/chandanghub/breast-cancer-using-neural-network/blob/main/breast_cancer_model.h5): `breast_cancer_model.h5`

### Other components

- **User**

## Connections

- User → Streamlit app: enters measurements (evidence: `breast_cancer_NN__public_webapp.py`)
- Streamlit app → Saved scaler: scales inputs (evidence: `breast_cancer_NN__public_webapp.py`)
- Streamlit app → Neural-network model: predicts tumor class (evidence: `breast_cancer_NN__public_webapp.py`)
- Streamlit app → User: displays result (evidence: `breast_cancer_NN__public_webapp.py`)
