# vishnusiddarthboppu/credit-card-default-prediction-app architecture

> Architecture diagram of the GitHub repository vishnusiddarthboppu/credit-card-default-prediction-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vishnusiddarthboppu/credit-card-default-prediction-app
- Repository: https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app

## Overview

This is a Streamlit demonstration app for predicting next-month credit-card default. The main workflow is a user entering customer and six-month repayment, bill, and payment details, then requesting a binary prediction from the saved scikit-learn pipeline. The notebook and bundled dataset represent the documented analysis and training branch; a separate Python script is documented for testing a single prediction. Source excerpts show the app’s input-to-inference flow, but the notebook and script were not inspected, so those connections rely on README statements.

Main entry points: [`default_prediction_web.app.py`](https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/default_prediction_web.app.py) (Prediction Function), [`default_trained_model.sav`](https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/default_trained_model.sav) (Saved SVC Pipeline), [`Credit_Card_Defaulter_Prediction_project.ipynb.ipynb`](https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/Credit_Card_Defaulter_Prediction_project.ipynb.ipynb) (Analysis And Training), [`default_predictive_system.py`](https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/default_predictive_system.py) (Single Prediction Script)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Prediction Interface"]
  node_streamlit_ui["Streamlit Form"]
  node_prediction["Prediction Function"]
  node_test_script["Single Prediction Script"]
end

subgraph group_modeling["Modeling"]
  node_analysis_training["Analysis And Training"]
end

subgraph group_assets["Data And Artifacts"]
  node_training_data["Customer Dataset"]
  node_trained_pipeline["Saved SVC Pipeline"]
end

node_customer(("Customer"))

node_customer -->|"enters details"| node_streamlit_ui
node_streamlit_ui -->|"calls on predict"| node_prediction
node_prediction -->|"predicts with"| node_trained_pipeline
node_prediction -->|"returns label"| node_streamlit_ui
node_training_data -->|"analyzed for training"| node_analysis_training
node_analysis_training -->|"saves pipeline"| node_trained_pipeline
node_test_script -->|"tests prediction with"| node_trained_pipeline

click node_streamlit_ui "https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/default_prediction_web.app.py"
click node_prediction "https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/default_prediction_web.app.py"
click node_training_data "https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/Credit_Card_Defaulter_Prediction.csv"
click node_analysis_training "https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/Credit_Card_Defaulter_Prediction_project.ipynb.ipynb"
click node_trained_pipeline "https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/default_trained_model.sav"
click node_test_script "https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/default_predictive_system.py"

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_streamlit_ui,node_prediction,node_test_script toneBlue
class node_analysis_training toneAmber
class node_training_data,node_trained_pipeline toneMint
class node_customer toneIndigo
```

## Components

### Prediction Interface

- [Streamlit Form](https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/default_prediction_web.app.py): `default_prediction_web.app.py`
- [Prediction Function](https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/default_prediction_web.app.py): `default_prediction_web.app.py`
- [Single Prediction Script](https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/default_predictive_system.py): `default_predictive_system.py`

### Modeling

- [Analysis And Training](https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/Credit_Card_Defaulter_Prediction_project.ipynb.ipynb): `Credit_Card_Defaulter_Prediction_project.ipynb.ipynb`

### Data And Artifacts

- [Customer Dataset](https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/Credit_Card_Defaulter_Prediction.csv): `Credit_Card_Defaulter_Prediction.csv`
- [Saved SVC Pipeline](https://github.com/vishnusiddarthboppu/credit-card-default-prediction-app/blob/main/default_trained_model.sav): `default_trained_model.sav`

### Other components

- **Customer**

## Connections

- Customer → Streamlit Form: enters details (evidence: `default_prediction_web.app.py`)
- Streamlit Form → Prediction Function: calls on predict (evidence: `default_prediction_web.app.py`)
- Prediction Function → Saved SVC Pipeline: predicts with (evidence: `default_prediction_web.app.py`)
- Prediction Function → Streamlit Form: returns label (evidence: `default_prediction_web.app.py`)
- Customer Dataset → Analysis And Training: analyzed for training (evidence: `README.md`)
- Analysis And Training → Saved SVC Pipeline: saves pipeline (evidence: `README.md`)
- Single Prediction Script → Saved SVC Pipeline: tests prediction with (evidence: `README.md`)
