# nahla-nabil/ai-bootcamp---gdg-shaqra architecture

> Architecture diagram of the GitHub repository nahla-nabil/ai-bootcamp---gdg-shaqra, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-11-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nahla-nabil/ai-bootcamp---gdg-shaqra
- Repository: https://github.com/nahla-nabil/ai-bootcamp---gdg-shaqra

## Overview

##### Project type and purpose
- This is a machine-learning classification pipeline focused on credit-card fraud detection.
- Implemented as a Jupyter Notebook (“ML Model - Nahla - AI Bootcamp (1).ipynb”) that ingests transaction data, preprocesses it, trains two MLP models (Scikit-learn and TensorFlow/Keras), and evaluates performance.

##### File structure
- Top level:
- A single notebook orchestrates the entire workflow.
- README describes purpose, architecture, data source, and tools.
- No separate “src” or “services” directories—everything happens inside the notebook.

##### README for additional insights
- Model architecture: Input (30 features) → Hidden layers (64 → 32 ReLU + dropout) → Sigmoid output
- Class imbalance handling: Oversampling
- Feature scaling: Standardization
- Technologies: Python 3, Pandas, NumPy, Scikit-learn, TensorFlow/Keras, Matplotlib, Seaborn

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Nodes
    DS["Data Source: Kaggle CSV"]:::data
    DI["Data Ingestion"]:::process
    DP["Data Preprocessing<br/>(scaling & balancing)"]:::process
    A["Model Training: Scikit-learn MLPClassifier<br/>Hidden:64→32, dropout=0.3"]:::model
    B["Model Training: TensorFlow/Keras Sequential MLP<br/>Hidden:64→32, dropout=0.3"]:::model
    EV["Model Evaluation & Visualization<br/>Accuracy, Confusion Matrix, ROC, Loss/Accuracy Curves"]:::eval
    MP["Model Persistence<br/>(.h5 or .pkl)"]:::eval
    DOC["Documentation: README.md"]:::doc

    %% Flow
    DS -->|"raw dataset"| DI
    DI -->|"raw dataset"| DP
    DP -->|"scaled & balanced dataset"| A
    DP -->|"scaled & balanced dataset"| B
    A -->|"trained model"| EV
    B -->|"trained model"| EV
    EV -->|"metrics & plots"| MP

    %% Documentation link
    DOC

    %% Click Events
    click DI "https://github.com/nahla-nabil/ai-bootcamp---gdg-shaqra/blob/main/ML Model - Nahla - AI Bootcamp (1).ipynb"
    click DP "https://github.com/nahla-nabil/ai-bootcamp---gdg-shaqra/blob/main/ML Model - Nahla - AI Bootcamp (1).ipynb"
    click A "https://github.com/nahla-nabil/ai-bootcamp---gdg-shaqra/blob/main/ML Model - Nahla - AI Bootcamp (1).ipynb"
    click B "https://github.com/nahla-nabil/ai-bootcamp---gdg-shaqra/blob/main/ML Model - Nahla - AI Bootcamp (1).ipynb"
    click EV "https://github.com/nahla-nabil/ai-bootcamp---gdg-shaqra/blob/main/ML Model - Nahla - AI Bootcamp (1).ipynb"
    click MP "https://github.com/nahla-nabil/ai-bootcamp---gdg-shaqra/blob/main/ML Model - Nahla - AI Bootcamp (1).ipynb"
    click DOC "https://github.com/nahla-nabil/ai-bootcamp---gdg-shaqra/blob/main/README.md"

    %% Styles
    classDef data fill:#ADD8E6,stroke:#000,stroke-width:1px
    classDef process fill:#90EE90,stroke:#000,stroke-width:1px
    classDef model fill:#FFA500,stroke:#000,stroke-width:1px
    classDef eval fill:#DDA0DD,stroke:#000,stroke-width:1px
    classDef doc fill:#D3D3D3,stroke:#000,stroke-width:1px
```
