# bhumikaaggwl/-rider-workload-risk-meituan architecture

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

- Interactive diagram: https://gitdiagram.com/bhumikaaggwl/-rider-workload-risk-meituan
- Repository: https://github.com/bhumikaaggwl/-rider-workload-risk-meituan

## Overview

This repository is a rider-workload and delivery-risk analysis project using Meituan order data. Its main workflow derives rider-level features, then uses those features to predict whether a rider’s late-delivery rate is above the median. Separate analysis branches explore generated plots and query workload summaries. The README documents those capabilities; the loader and EDA source were not sampled, so their internal steps and precise data connections are not inferred.

Main entry points: [`src/load_data.py`](https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/src/load_data.py) (Load and engineer features), [`outputs/rider_features.csv`](https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/outputs/rider_features.csv) (Rider features CSV), [`src/eda.py`](https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/src/eda.py) (Exploratory analysis), [`src/sql_queries.py`](https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/src/sql_queries.py) (Workload SQL summaries)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Data preparation"]
  node_raw_data["Meituan order data"]
  node_loader["Load and engineer features<br/>[load_data.py]"]
  node_features["Rider features CSV<br/>[rider_features.csv]"]
end

subgraph group_analysis["Workload analysis"]
  node_eda["Exploratory analysis<br/>[eda.py]"]
  node_plots["Analysis plots"]
  node_sql["Workload SQL summaries<br/>[sql_queries.py]"]
end

subgraph group_prediction["Risk prediction"]
  node_model["Late-risk classifier<br/>[model.py]"]
end

node_analyst(("Analyst"))

node_analyst -->|"runs"| node_loader
node_raw_data -->|"loads"| node_loader
node_loader -->|"writes features"| node_features
node_analyst -->|"runs"| node_eda
node_eda -->|"generates plots"| node_plots
node_analyst -->|"runs"| node_sql
node_sql -->|"reads"| node_features
node_analyst -->|"runs"| node_model
node_model -->|"reads"| node_features

click node_loader "https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/src/load_data.py"
click node_features "https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/outputs/rider_features.csv"
click node_eda "https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/src/eda.py"
click node_plots "https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/tree/main/outputs/plots"
click node_sql "https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/src/sql_queries.py"
click node_model "https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/src/model.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_loader,node_features toneBlue
class node_eda,node_plots,node_sql toneAmber
class node_model toneMint
class node_analyst toneIndigo
```

## Components

### Data preparation

- **Meituan order data**
- [Load and engineer features](https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/src/load_data.py): `src/load_data.py`
- [Rider features CSV](https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/outputs/rider_features.csv): `outputs/rider_features.csv`

### Workload analysis

- [Exploratory analysis](https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/src/eda.py): `src/eda.py`
- [Analysis plots](https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/tree/main/outputs/plots): `outputs/plots`
- [Workload SQL summaries](https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/src/sql_queries.py): `src/sql_queries.py`

### Risk prediction

- [Late-risk classifier](https://github.com/bhumikaaggwl/-rider-workload-risk-meituan/blob/main/src/model.py): `src/model.py`

### Other components

- **Analyst**

## Connections

- Analyst → Load and engineer features: runs (evidence: `README.md`)
- Meituan order data → Load and engineer features: loads (evidence: `README.md`)
- Load and engineer features → Rider features CSV: writes features (evidence: `README.md`)
- Analyst → Exploratory analysis: runs (evidence: `README.md`)
- Exploratory analysis → Analysis plots: generates plots (evidence: `README.md`)
- Analyst → Workload SQL summaries: runs (evidence: `README.md`)
- Workload SQL summaries → Rider features CSV: reads (evidence: `src/sql_queries.py`)
- Analyst → Late-risk classifier: runs (evidence: `README.md`)
- Late-risk classifier → Rider features CSV: reads (evidence: `src/model.py`)
