# jaymonty/credit-risk-analysis architecture

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

- Interactive diagram: https://gitdiagram.com/jaymonty/credit-risk-analysis
- Repository: https://github.com/jaymonty/credit-risk-analysis

## Overview

This repository documents a notebook-based credit-risk modeling project: credit-related data is explored and prepared, several classifiers are trained with and without SMOTE and RFECV, and their results are compared to identify a tuned model. The README also names deployment as a project objective, but the tree shows no deployment artifact, so it is represented only as an undocumented implementation. Relationships below follow the README’s stated workflow; notebook contents were not available for inspection.

Main entry points: [`Model_Dev_.ipynb`](https://github.com/jaymonty/credit-risk-analysis/blob/main/Model_Dev_.ipynb) (Classifiers), [`Data_Preprocessing.ipynb`](https://github.com/jaymonty/credit-risk-analysis/blob/main/Data_Preprocessing.ipynb) (Data exploration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Data preparation"]
  node_exploration["Data exploration"]
  node_cleaning["Data cleaning"]
  node_preprocessing["Data preprocessing"]
end

subgraph group_model["Model development"]
  node_models["Classifiers<br/>[Model_Dev_.ipynb]"]
  node_smote["SMOTE sampling<br/>[Model_Dev_.ipynb]"]
  node_rfecv["RFECV selection<br/>[Model_Dev_.ipynb]"]
  node_tuning["Hyperparameter tuning<br/>[Model_Dev_.ipynb]"]
end

subgraph group_results["Evaluation and use"]
  node_evaluation["Model evaluation<br/>[Model_Dev_.ipynb]"]
  node_comparison["Model comparison<br/>[Model_Dev_.ipynb]"]
  node_deployment["Deployment"]
end

node_institution(("Financial institution"))
node_credit_data[("Credit records")]

node_credit_data -->|"explores"| node_exploration
node_exploration -->|"informs"| node_cleaning
node_cleaning -->|"prepares data"| node_preprocessing
node_preprocessing -->|"supplies data"| node_models
node_models -->|"retrained with"| node_smote
node_models -->|"retrained with"| node_rfecv
node_models -->|"tunes best model"| node_tuning
node_models -->|"evaluated by"| node_evaluation
node_smote -->|"evaluated by"| node_evaluation
node_rfecv -->|"evaluated by"| node_evaluation
node_evaluation -->|"compared in"| node_comparison
node_comparison -->|"supports decisions"| node_institution
node_comparison -.->|"intended for"| node_deployment

click node_exploration "https://github.com/jaymonty/credit-risk-analysis/blob/main/Data_Preprocessing.ipynb"
click node_cleaning "https://github.com/jaymonty/credit-risk-analysis/blob/main/Data_Preprocessing.ipynb"
click node_preprocessing "https://github.com/jaymonty/credit-risk-analysis/blob/main/Data_Preprocessing.ipynb"
click node_models "https://github.com/jaymonty/credit-risk-analysis/blob/main/Model_Dev_.ipynb"
click node_smote "https://github.com/jaymonty/credit-risk-analysis/blob/main/Model_Dev_.ipynb"
click node_rfecv "https://github.com/jaymonty/credit-risk-analysis/blob/main/Model_Dev_.ipynb"
click node_tuning "https://github.com/jaymonty/credit-risk-analysis/blob/main/Model_Dev_.ipynb"
click node_evaluation "https://github.com/jaymonty/credit-risk-analysis/blob/main/Model_Dev_.ipynb"
click node_comparison "https://github.com/jaymonty/credit-risk-analysis/blob/main/Model_Dev_.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_exploration,node_cleaning,node_preprocessing toneBlue
class node_models,node_smote,node_rfecv,node_tuning,node_credit_data toneAmber
class node_evaluation,node_comparison,node_deployment toneMint
class node_institution toneIndigo
```

## Components

### Data preparation

- [Data exploration](https://github.com/jaymonty/credit-risk-analysis/blob/main/Data_Preprocessing.ipynb): `Data_Preprocessing.ipynb`
- [Data cleaning](https://github.com/jaymonty/credit-risk-analysis/blob/main/Data_Preprocessing.ipynb): `Data_Preprocessing.ipynb`
- [Data preprocessing](https://github.com/jaymonty/credit-risk-analysis/blob/main/Data_Preprocessing.ipynb): `Data_Preprocessing.ipynb`

### Model development

- [Classifiers](https://github.com/jaymonty/credit-risk-analysis/blob/main/Model_Dev_.ipynb): `Model_Dev_.ipynb`
- [SMOTE sampling](https://github.com/jaymonty/credit-risk-analysis/blob/main/Model_Dev_.ipynb): `Model_Dev_.ipynb`
- [RFECV selection](https://github.com/jaymonty/credit-risk-analysis/blob/main/Model_Dev_.ipynb): `Model_Dev_.ipynb`
- [Hyperparameter tuning](https://github.com/jaymonty/credit-risk-analysis/blob/main/Model_Dev_.ipynb): `Model_Dev_.ipynb`

### Evaluation and use

- [Model evaluation](https://github.com/jaymonty/credit-risk-analysis/blob/main/Model_Dev_.ipynb): `Model_Dev_.ipynb`
- [Model comparison](https://github.com/jaymonty/credit-risk-analysis/blob/main/Model_Dev_.ipynb): `Model_Dev_.ipynb`
- **Deployment**

### Other components

- **Financial institution**
- **Credit records**

## Connections

- Credit records → Data exploration: explores (evidence: `README.md`)
- Data exploration → Data cleaning: informs (evidence: `README.md`)
- Data cleaning → Data preprocessing: prepares data (evidence: `README.md`)
- Data preprocessing → Classifiers: supplies data (evidence: `README.md`)
- Classifiers → SMOTE sampling: retrained with (evidence: `README.md`)
- Classifiers → RFECV selection: retrained with (evidence: `README.md`)
- Classifiers → Hyperparameter tuning: tunes best model (evidence: `README.md`)
- Classifiers → Model evaluation: evaluated by (evidence: `README.md`)
- SMOTE sampling → Model evaluation: evaluated by (evidence: `README.md`)
- RFECV selection → Model evaluation: evaluated by (evidence: `README.md`)
- Model evaluation → Model comparison: compared in (evidence: `README.md`)
- Model comparison → Financial institution: supports decisions (evidence: `README.md`)
- Model comparison → Deployment: intended for (evidence: `README.md`)
