# kadufallone/medical-cost-prediction architecture

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

- Interactive diagram: https://gitdiagram.com/kadufallone/medical-cost-prediction
- Repository: https://github.com/kadufallone/medical-cost-prediction

## Overview

This repository appears to be an insurance-cost machine-learning project, but the sampled code only implements CSV loading, duplicate removal, and train/test splitting. The natural workflow begins with the raw insurance data and uses shared configuration; no user-facing entry point or model-training, feature, or evaluation behavior is shown. Those modules exist but are empty in the excerpts, so they are represented without inferred connections. The README is empty, and the available evidence does not establish how reports or notebooks fit into runtime behavior.

Main entry points: [`ml/data.py`](https://github.com/kadufallone/medical-cost-prediction/blob/main/ml/data.py) (Load and split), [`data/raw/insurance.csv`](https://github.com/kadufallone/medical-cost-prediction/blob/main/data/raw/insurance.csv) (Insurance CSV), [`ml/config.py`](https://github.com/kadufallone/medical-cost-prediction/blob/main/ml/config.py) (ML configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_preparation["Data preparation"]
  node_raw_data[("Insurance CSV<br/>[insurance.csv]")]
  node_data_prep["Load and split<br/>[data.py]"]
  node_config["ML configuration<br/>[config.py]"]
end

subgraph group_modeling["Modeling modules"]
  node_features["Feature module<br/>[features.py]"]
  node_training["Training module<br/>[train.py]"]
  node_evaluation["Evaluation module<br/>[evaluate.py]"]
end

node_data_prep -->|"reads CSV"| node_raw_data
node_data_prep -->|"reads settings"| node_config

click node_raw_data "https://github.com/kadufallone/medical-cost-prediction/blob/main/data/raw/insurance.csv"
click node_data_prep "https://github.com/kadufallone/medical-cost-prediction/blob/main/ml/data.py"
click node_config "https://github.com/kadufallone/medical-cost-prediction/blob/main/ml/config.py"
click node_features "https://github.com/kadufallone/medical-cost-prediction/blob/main/ml/features.py"
click node_training "https://github.com/kadufallone/medical-cost-prediction/blob/main/ml/train.py"
click node_evaluation "https://github.com/kadufallone/medical-cost-prediction/blob/main/ml/evaluate.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_raw_data,node_data_prep,node_config toneBlue
class node_features,node_training,node_evaluation toneAmber
```

## Components

### Data preparation

- [Insurance CSV](https://github.com/kadufallone/medical-cost-prediction/blob/main/data/raw/insurance.csv): `data/raw/insurance.csv`
- [Load and split](https://github.com/kadufallone/medical-cost-prediction/blob/main/ml/data.py): `ml/data.py`
- [ML configuration](https://github.com/kadufallone/medical-cost-prediction/blob/main/ml/config.py): `ml/config.py`

### Modeling modules

- [Feature module](https://github.com/kadufallone/medical-cost-prediction/blob/main/ml/features.py): `ml/features.py`
- [Training module](https://github.com/kadufallone/medical-cost-prediction/blob/main/ml/train.py): `ml/train.py`
- [Evaluation module](https://github.com/kadufallone/medical-cost-prediction/blob/main/ml/evaluate.py): `ml/evaluate.py`

## Connections

- Load and split → Insurance CSV: reads CSV (evidence: `ml/data.py`)
- Load and split → ML configuration: reads settings (evidence: `ml/data.py`)
