# richardhhhg/ssu-data-dash architecture

> Architecture diagram of the GitHub repository richardhhhg/ssu-data-dash, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/richardhhhg/ssu-data-dash
- Repository: https://github.com/richardhhhg/ssu-data-dash

## Overview

SSU Data Dash is a home-price prediction starter project with off-market and list-aware tracks. Users run validation, generate reports, create both submission files, and check them. The main runtime flow loads sales and target homes, fits a track-specific model, and predicts prices; validation additionally hides unavailable answers before prediction. The graph also preserves feature engineering and submission checking. Source excerpts show the Python runtime; the R baseline and notebooks are documented but not sampled, so their internal connections are omitted.

Main entry points: [`run.py`](https://github.com/richardhhhg/ssu-data-dash/blob/main/run.py) (Walk-forward validation), [`data.py`](https://github.com/richardhhhg/ssu-data-dash/blob/main/data.py) (Dataset loader), [`models.py`](https://github.com/richardhhhg/ssu-data-dash/blob/main/models.py) (Prediction models), [`check_submission.py`](https://github.com/richardhhhg/ssu-data-dash/blob/main/check_submission.py) (Submission checking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Run workflows"]
  node_cli["Command dispatcher<br/>[run.py]"]
  node_validation["Walk-forward validation<br/>[run.py]"]
  node_prediction_run["Test prediction<br/>[run.py]"]
end

subgraph group_data["Data access"]
  node_data_loader["Dataset loader<br/>[data.py]"]
  node_dataset[("Competition dataset")]
  node_answer_filter["Answer hiding<br/>[data.py]"]
end

subgraph group_prediction["Prediction"]
  node_model_factory["Track model selection<br/>[models.py]"]
  node_baselines["Prediction models<br/>[models.py]"]
  node_feature_engineering["Feature engineering<br/>[features.py]"]
end

subgraph group_evaluation["Evaluation"]
  node_reporting["Validation reporting<br/>[run.py]"]
  node_submission_check["Submission checking"]
end

node_user(("Project user"))

node_user -->|"runs command"| node_cli
node_cli -->|"dispatches"| node_validation
node_cli -->|"dispatches"| node_prediction_run
node_cli -->|"dispatches"| node_reporting
node_cli -->|"dispatches"| node_submission_check
node_validation -->|"loads sales"| node_data_loader
node_validation -->|"loads homes"| node_data_loader
node_prediction_run -->|"loads sales and homes"| node_data_loader
node_data_loader -->|"downloads files"| node_dataset
node_validation -->|"hides answers"| node_answer_filter
node_validation -->|"selects model"| node_model_factory
node_prediction_run -->|"selects model"| node_model_factory
node_model_factory -->|"returns track model"| node_baselines
node_baselines -->|"uses features when enabled"| node_feature_engineering
node_validation -->|"fits and predicts"| node_baselines
node_prediction_run -->|"fits and predicts"| node_baselines
node_reporting -->|"reads predictions"| node_validation
node_submission_check -->|"loads test IDs"| node_data_loader

click node_cli "https://github.com/richardhhhg/ssu-data-dash/blob/main/run.py"
click node_validation "https://github.com/richardhhhg/ssu-data-dash/blob/main/run.py"
click node_prediction_run "https://github.com/richardhhhg/ssu-data-dash/blob/main/run.py"
click node_reporting "https://github.com/richardhhhg/ssu-data-dash/blob/main/run.py"
click node_submission_check "https://github.com/richardhhhg/ssu-data-dash/blob/main/check_submission.py"
click node_data_loader "https://github.com/richardhhhg/ssu-data-dash/blob/main/data.py"
click node_answer_filter "https://github.com/richardhhhg/ssu-data-dash/blob/main/data.py"
click node_model_factory "https://github.com/richardhhhg/ssu-data-dash/blob/main/models.py"
click node_baselines "https://github.com/richardhhhg/ssu-data-dash/blob/main/models.py"
click node_feature_engineering "https://github.com/richardhhhg/ssu-data-dash/blob/main/features.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_cli,node_validation,node_prediction_run,node_user toneBlue
class node_data_loader,node_dataset,node_answer_filter toneAmber
class node_model_factory,node_baselines,node_feature_engineering toneMint
class node_reporting,node_submission_check toneRose
```

## Components

### Run workflows

- [Command dispatcher](https://github.com/richardhhhg/ssu-data-dash/blob/main/run.py): `run.py`
- [Walk-forward validation](https://github.com/richardhhhg/ssu-data-dash/blob/main/run.py): `run.py`
- [Test prediction](https://github.com/richardhhhg/ssu-data-dash/blob/main/run.py): `run.py`

### Data access

- [Dataset loader](https://github.com/richardhhhg/ssu-data-dash/blob/main/data.py): `data.py`
- **Competition dataset**
- [Answer hiding](https://github.com/richardhhhg/ssu-data-dash/blob/main/data.py): `data.py`

### Prediction

- [Track model selection](https://github.com/richardhhhg/ssu-data-dash/blob/main/models.py): `models.py`
- [Prediction models](https://github.com/richardhhhg/ssu-data-dash/blob/main/models.py): `models.py`
- [Feature engineering](https://github.com/richardhhhg/ssu-data-dash/blob/main/features.py): `features.py`

### Evaluation

- [Validation reporting](https://github.com/richardhhhg/ssu-data-dash/blob/main/run.py): `run.py`
- [Submission checking](https://github.com/richardhhhg/ssu-data-dash/blob/main/check_submission.py): `check_submission.py`

### Other components

- **Project user**

## Connections

- Project user → Command dispatcher: runs command (evidence: `run.py`)
- Command dispatcher → Walk-forward validation: dispatches (evidence: `run.py`)
- Command dispatcher → Test prediction: dispatches (evidence: `run.py`)
- Command dispatcher → Validation reporting: dispatches (evidence: `run.py`)
- Command dispatcher → Submission checking: dispatches (evidence: `run.py`)
- Walk-forward validation → Dataset loader: loads sales (evidence: `run.py`)
- Walk-forward validation → Dataset loader: loads homes (evidence: `run.py`)
- Test prediction → Dataset loader: loads sales and homes (evidence: `run.py`)
- Dataset loader → Competition dataset: downloads files (evidence: `data.py`)
- Walk-forward validation → Answer hiding: hides answers (evidence: `run.py`)
- Walk-forward validation → Track model selection: selects model (evidence: `run.py`)
- Test prediction → Track model selection: selects model (evidence: `run.py`)
- Track model selection → Prediction models: returns track model (evidence: `models.py`)
- Prediction models → Feature engineering: uses features when enabled (evidence: `models.py`)
- Walk-forward validation → Prediction models: fits and predicts (evidence: `run.py`)
- Test prediction → Prediction models: fits and predicts (evidence: `run.py`)
- Validation reporting → Walk-forward validation: reads predictions (evidence: `run.py`)
- Submission checking → Dataset loader: loads test IDs (evidence: `check_submission.py`)
