# premkumarsepuri/credit-card-fraud-detection architecture

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

- Interactive diagram: https://gitdiagram.com/premkumarsepuri/credit-card-fraud-detection
- Repository: https://github.com/premkumarsepuri/credit-card-fraud-detection

## Overview

This is a small, notebook-based credit-card fraud detection project. The documented workflow uses a CSV dataset to develop a fraud classifier and reports test accuracy and PR-AUC after hyperparameter tuning. The notebook was not excerpted, so its internal stages and runtime relationships cannot be verified; the graph shows only the documented data input and evaluation capability.

Main entry points: [`credit_card_fraud_detection.ipynb`](https://github.com/premkumarsepuri/credit-card-fraud-detection/blob/main/credit_card_fraud_detection.ipynb) (Fraud detection notebook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analysis["Fraud analysis"]
  node_notebook["Fraud detection notebook"]
  node_evaluation["Model evaluation"]
end

node_dataset["Transaction CSV"]

node_dataset -->|"provides data"| node_notebook
node_notebook -->|"reports metrics"| node_evaluation

click node_notebook "https://github.com/premkumarsepuri/credit-card-fraud-detection/blob/main/credit_card_fraud_detection.ipynb"
click node_evaluation "https://github.com/premkumarsepuri/credit-card-fraud-detection/blob/main/credit_card_fraud_detection.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_notebook,node_evaluation toneBlue
class node_dataset toneIndigo
```

## Components

### Fraud analysis

- [Fraud detection notebook](https://github.com/premkumarsepuri/credit-card-fraud-detection/blob/main/credit_card_fraud_detection.ipynb): `credit_card_fraud_detection.ipynb`
- [Model evaluation](https://github.com/premkumarsepuri/credit-card-fraud-detection/blob/main/credit_card_fraud_detection.ipynb): `credit_card_fraud_detection.ipynb`

### Other components

- **Transaction CSV**

## Connections

- Transaction CSV → Fraud detection notebook: provides data (evidence: `README.md`)
- Fraud detection notebook → Model evaluation: reports metrics (evidence: `README.md`)
