# hooridata/ai-project-delay-risk-prediction architecture

> Architecture diagram of the GitHub repository hooridata/ai-project-delay-risk-prediction, 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/hooridata/ai-project-delay-risk-prediction
- Repository: https://github.com/hooridata/ai-project-delay-risk-prediction

## Overview

This is a small machine-learning prototype for predicting project task delays. Its workflow loads the project dataset, encodes categorical fields, splits the data, trains a random-forest classifier, evaluates predictions, and predicts delay status for a sample task. The README identifies the system as project delay and risk prediction, but the shown implementation covers delay classification only; no interactive application or operational project-management integrations are evidenced.

Main entry points: [`model.py`](https://github.com/hooridata/ai-project-delay-risk-prediction/blob/main/model.py) (Training and prediction), [`project_data.csv`](https://github.com/hooridata/ai-project-delay-risk-prediction/blob/main/project_data.csv) (Project dataset)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_modeling["Delay modeling"]
  node_pipeline["Training and prediction<br/>[model.py]"]
  node_classifier["Random forest<br/>[model.py]"]
  node_metrics["Evaluation metrics<br/>[model.py]"]
  node_sample["Sample task prediction<br/>[model.py]"]
end

subgraph group_data["Training data"]
  node_dataset["Project dataset<br/>[project_data.csv]"]
end

node_analyst(("Model runner"))

node_analyst -->|"runs"| node_pipeline
node_pipeline -->|"loads"| node_dataset
node_pipeline -->|"trains"| node_classifier
node_pipeline -->|"evaluates"| node_metrics
node_pipeline -->|"predicts"| node_sample
node_sample -->|"uses"| node_classifier

click node_dataset "https://github.com/hooridata/ai-project-delay-risk-prediction/blob/main/project_data.csv"
click node_pipeline "https://github.com/hooridata/ai-project-delay-risk-prediction/blob/main/model.py"
click node_classifier "https://github.com/hooridata/ai-project-delay-risk-prediction/blob/main/model.py"
click node_metrics "https://github.com/hooridata/ai-project-delay-risk-prediction/blob/main/model.py"
click node_sample "https://github.com/hooridata/ai-project-delay-risk-prediction/blob/main/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_pipeline,node_classifier,node_metrics,node_sample toneBlue
class node_dataset toneAmber
class node_analyst toneIndigo
```

## Components

### Delay modeling

- [Training and prediction](https://github.com/hooridata/ai-project-delay-risk-prediction/blob/main/model.py): `model.py`
- [Random forest](https://github.com/hooridata/ai-project-delay-risk-prediction/blob/main/model.py): `model.py`
- [Evaluation metrics](https://github.com/hooridata/ai-project-delay-risk-prediction/blob/main/model.py): `model.py`
- [Sample task prediction](https://github.com/hooridata/ai-project-delay-risk-prediction/blob/main/model.py): `model.py`

### Training data

- [Project dataset](https://github.com/hooridata/ai-project-delay-risk-prediction/blob/main/project_data.csv): `project_data.csv`

### Other components

- **Model runner**

## Connections

- Model runner → Training and prediction: runs (evidence: `README.md`)
- Training and prediction → Project dataset: loads (evidence: `model.py`)
- Training and prediction → Random forest: trains (evidence: `model.py`)
- Training and prediction → Evaluation metrics: evaluates (evidence: `model.py`)
- Training and prediction → Sample task prediction: predicts (evidence: `model.py`)
- Sample task prediction → Random forest: uses (evidence: `model.py`)
