# earlyann/anonymized_loan_repayment_predictions architecture

> Architecture diagram of the GitHub repository earlyann/anonymized_loan_repayment_predictions, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/earlyann/anonymized_loan_repayment_predictions
- Repository: https://github.com/earlyann/anonymized_loan_repayment_predictions

## Overview

##### Detailed Component Breakdown

A. Data Sources Layer (Left side)
- Customer Information
- Loan Details
- Financial Metrics
- Credit History

B. Processing & Analysis Layer
- Feature Engineering
- Data Cleaning
- Categorical Encoding
- An EDA (Exploratory Data Analysis) component
- To Tableau integration
- Data validation steps

C. Model Layer (Central)
- CatBoost Classifier component
- Training Pipeline
- Model Storage
- Prediction Engine

D. Interpretation & Visualization Layer (Right side)
- SHAP Analysis component
- Local Interpretability Engine
- Global Interpretability Engine
- Tableau Dashboard component
- Interactive Visualizations
- Feature Analysis

##### Additional Elements

Include:
- Version control integration (Git)
- API Interface
- Web Application
- User Interface

##### Technical Details

Annotations for:
- Python as the primary technology
- CatBoost classifier specifications
- SHAP value calculation process
- Tableau integration points

##### Future Extensions

- Model deployment infrastructure
- API endpoints
- Web interface
- Monitoring systems

- Proper alignment and spacing
- Export to high-resolution formats

Remember to maintain consistency in:
- Text formatting
- Component spacing

## Diagram (Mermaid)

```mermaid
graph TB
    %% Data Sources Layer
    subgraph DataSources
        DB[(Loan Dataset)]
        CI[Customer Information]
        LD[Loan Details]
        FM[Financial Metrics]
        CH[Credit History]
        
        DB --> CI
        DB --> LD
        DB --> FM
        DB --> CH
    end

    %% Processing & Analysis Layer
    subgraph Processing
        DP[Data Preprocessing]
        FE[Feature Engineering]
        DC[Data Cleaning]
        CE[Categorical Encoding]
        EDA[Exploratory Data Analysis]
        
        CI & LD & FM & CH --> DP
        DP --> FE
        DP --> DC
        DP --> CE
        FE & DC & CE --> EDA
    end

    %% Model Layer
    subgraph ModelLayer
        CB["CatBoost Classifier"]:::model
        TP[Training Pipeline]
        MS[(Model Storage)]
        PE[Prediction Engine]
        
        EDA --> CB
        CB --> TP
        TP --> MS
        MS --> PE
    end

    %% Interpretation & Visualization Layer
    subgraph Interpretation
        SHAP["SHAP Analysis"]:::shap
        LI[Local Interpretability]
        GI[Global Interpretability]
        TD[Tableau Dashboard]
        IV[Interactive Visualizations]
        FA[Feature Analysis]
        
        PE --> SHAP
        SHAP --> LI
        SHAP --> GI
        LI & GI --> TD
        TD --> IV
        TD --> FA
    end

    %% Future Components
    subgraph Future["Future Components"]
        style Future stroke-dasharray: 5 5
        API[API Interface]
        WA[Web Application]
        UI[User Interface]
        MON[Monitoring System]
        
        PE -.-> API
        API -.-> WA
        WA -.-> UI
        UI -.-> MON
    end

    %% Version Control
    VC["Version Control"]:::git

    %% Click Events
    click CB "https://github.com/earlyann/anonymized_loan_repayment_predictions/blob/main/loan-repayment-predictions-shap.ipynb"
    click VC "https://github.com/earlyann/anonymized_loan_repayment_predictions/blob/main/.gitignore"

    %% Styling
    classDef default fill:#f9f9f9,stroke:#333,stroke-width:1px
    classDef model fill:#ffa500,stroke:#333
    classDef shap fill:#9370db,stroke:#333
    classDef git fill:#f1f1f1,stroke:#333
    
    %% Legend
    subgraph Legend
        L1[Data Components]:::default
        L2[Model Components]:::model
        L3[Interpretation Components]:::shap
        L4[Future Components]
    end
```
