# omar-alsayed1427/flyrank-ml-internship architecture

> Architecture diagram of the GitHub repository omar-alsayed1427/flyrank-ml-internship, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/omar-alsayed1427/flyrank-ml-internship
- Repository: https://github.com/omar-alsayed1427/flyrank-ml-internship

## Overview

FlyRank ML Internship is an educational workspace for learning search-intelligence analysis and producing a refresh-priority recommendation. The reference workflow prepares anonymized page data, compares a transparent baseline with trained classifiers, evaluates and exports a ranked review queue, then creates reports. Separate learning notebooks, assignment notebooks, and skills support the internship; the capstone adds a warehouse-backed experiment and research-paper rendering. Relationships are grounded in the README and shown script excerpts; unsampled notebook and skill internals are represented only at their documented directory level.

Main entry points: [`scripts/run_all.py`](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/run_all.py) (Pipeline runner), [`scripts/04_evaluate_and_export.py`](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/04_evaluate_and_export.py) (Queue evaluation), [`scripts/01_prepare_features.py`](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/01_prepare_features.py) (Feature preparation), [`scripts/02_baseline_score.py`](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/02_baseline_score.py) (Rule baseline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning materials"]
  node_firstwin["Starter notebooks"]
  node_assignments["Weekly assignments"]
  node_skills["ML skills"]
end

subgraph group_reference["Reference pipeline"]
  node_rawdata[("Anonymized sample")]
  node_utils["Shared utilities<br/>[ml_utils.py]"]
  node_prepare["Feature preparation"]
  node_features[("Prepared features")]
  node_baseline["Rule baseline"]
  node_train["Model training<br/>[03_train_model.py]"]
  node_evaluate["Queue evaluation"]
  node_runner["Pipeline runner<br/>[run_all.py]"]
end

subgraph group_capstone["Capstone experiment"]
  node_caprunner["Capstone experiment<br/>[run_capstone.py]"]
  node_warehousequery["Warehouse query"]
  node_capresults[("Capstone results")]
  node_render["Research renderer<br/>[render_capstone.py]"]
end

subgraph group_results["Results and reports"]
  node_resultfiles[("Pipeline outputs")]
  node_pdf["PDF report builder"]
end

node_learner(("Intern"))
node_warehouse[("Hosted warehouse")]

node_learner -->|"explores"| node_firstwin
node_learner -->|"completes"| node_assignments
node_learner -->|"uses guidance"| node_skills
node_learner -->|"runs locally"| node_runner
node_rawdata -->|"provides rows"| node_prepare
node_prepare -->|"writes features"| node_features
node_prepare -->|"uses helpers"| node_utils
node_baseline -->|"uses helpers"| node_utils
node_features -->|"scores rows"| node_baseline
node_features -->|"trains on"| node_train
node_train -->|"uses helpers"| node_utils
node_baseline -->|"provides scores"| node_evaluate
node_train -->|"provides predictions"| node_evaluate
node_evaluate -->|"uses helpers"| node_utils
node_evaluate -->|"exports queue"| node_resultfiles
node_runner -->|"runs step"| node_prepare
node_runner -->|"runs step"| node_baseline
node_runner -->|"runs step"| node_train
node_runner -->|"runs step"| node_evaluate
node_runner -->|"runs step"| node_pdf
node_pdf -->|"summarizes results"| node_resultfiles
node_caprunner -->|"executes query"| node_warehousequery
node_warehousequery -->|"queries data"| node_warehouse
node_caprunner -->|"exports metrics"| node_capresults
node_capresults -.->|"supplies results"| node_render
node_render -.->|"presents findings"| node_learner

click node_firstwin "https://github.com/omar-alsayed1427/flyrank-ml-internship/tree/main/notebooks"
click node_assignments "https://github.com/omar-alsayed1427/flyrank-ml-internship/tree/main/work/notebooks"
click node_skills "https://github.com/omar-alsayed1427/flyrank-ml-internship/tree/main/skills"
click node_rawdata "https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/data/raw/content_refresh_anonymized.csv"
click node_utils "https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/ml_utils.py"
click node_prepare "https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/01_prepare_features.py"
click node_baseline "https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/02_baseline_score.py"
click node_train "https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/03_train_model.py"
click node_evaluate "https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/04_evaluate_and_export.py"
click node_runner "https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/run_all.py"
click node_resultfiles "https://github.com/omar-alsayed1427/flyrank-ml-internship/tree/main/outputs"
click node_pdf "https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/05_build_pdf_report.py"
click node_caprunner "https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/work/run_capstone.py"
click node_warehousequery "https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/work/capstone_warehouse.sql"
click node_capresults "https://github.com/omar-alsayed1427/flyrank-ml-internship/tree/main/work/outputs/ml-capstone"
click node_render "https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/work/render_capstone.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_firstwin,node_assignments,node_skills toneBlue
class node_rawdata,node_utils,node_prepare,node_features,node_baseline,node_train,node_evaluate,node_runner,node_warehouse toneAmber
class node_caprunner,node_warehousequery,node_capresults,node_render toneMint
class node_resultfiles,node_pdf toneRose
class node_learner toneIndigo
```

## Components

### Learning materials

- [Starter notebooks](https://github.com/omar-alsayed1427/flyrank-ml-internship/tree/main/notebooks): `notebooks`
- [Weekly assignments](https://github.com/omar-alsayed1427/flyrank-ml-internship/tree/main/work/notebooks): `work/notebooks`
- [ML skills](https://github.com/omar-alsayed1427/flyrank-ml-internship/tree/main/skills): `skills`

### Reference pipeline

- [Anonymized sample](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/data/raw/content_refresh_anonymized.csv): `data/raw/content_refresh_anonymized.csv`
- [Shared utilities](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/ml_utils.py): `scripts/ml_utils.py`
- [Feature preparation](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/01_prepare_features.py): `scripts/01_prepare_features.py`
- **Prepared features**
- [Rule baseline](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/02_baseline_score.py): `scripts/02_baseline_score.py`
- [Model training](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/03_train_model.py): `scripts/03_train_model.py`
- [Queue evaluation](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/04_evaluate_and_export.py): `scripts/04_evaluate_and_export.py`
- [Pipeline runner](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/run_all.py): `scripts/run_all.py`

### Capstone experiment

- [Capstone experiment](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/work/run_capstone.py): `work/run_capstone.py`
- [Warehouse query](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/work/capstone_warehouse.sql): `work/capstone_warehouse.sql`
- [Capstone results](https://github.com/omar-alsayed1427/flyrank-ml-internship/tree/main/work/outputs/ml-capstone): `work/outputs/ml-capstone`
- [Research renderer](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/work/render_capstone.py): `work/render_capstone.py`

### Results and reports

- [Pipeline outputs](https://github.com/omar-alsayed1427/flyrank-ml-internship/tree/main/outputs): `outputs`
- [PDF report builder](https://github.com/omar-alsayed1427/flyrank-ml-internship/blob/main/scripts/05_build_pdf_report.py): `scripts/05_build_pdf_report.py`

### Other components

- **Intern**
- **Hosted warehouse**

## Connections

- Intern → Starter notebooks: explores (evidence: `README.md`)
- Intern → Weekly assignments: completes (evidence: `README.md`)
- Intern → ML skills: uses guidance (evidence: `README.md`)
- Intern → Pipeline runner: runs locally (evidence: `README.md`)
- Anonymized sample → Feature preparation: provides rows (evidence: `scripts/01_prepare_features.py`)
- Feature preparation → Prepared features: writes features (evidence: `scripts/01_prepare_features.py`)
- Feature preparation → Shared utilities: uses helpers (evidence: `scripts/01_prepare_features.py`)
- Rule baseline → Shared utilities: uses helpers (evidence: `scripts/02_baseline_score.py`)
- Prepared features → Rule baseline: scores rows (evidence: `README.md`)
- Prepared features → Model training: trains on (evidence: `README.md`)
- Model training → Shared utilities: uses helpers (evidence: `scripts/03_train_model.py`)
- Rule baseline → Queue evaluation: provides scores (evidence: `README.md`)
- Model training → Queue evaluation: provides predictions (evidence: `README.md`)
- Queue evaluation → Shared utilities: uses helpers (evidence: `scripts/04_evaluate_and_export.py`)
- Queue evaluation → Pipeline outputs: exports queue (evidence: `README.md`)
- Pipeline runner → Feature preparation: runs step (evidence: `scripts/run_all.py`)
- Pipeline runner → Rule baseline: runs step (evidence: `scripts/run_all.py`)
- Pipeline runner → Model training: runs step (evidence: `scripts/run_all.py`)
- Pipeline runner → Queue evaluation: runs step (evidence: `scripts/run_all.py`)
- Pipeline runner → PDF report builder: runs step (evidence: `scripts/run_all.py`)
- PDF report builder → Pipeline outputs: summarizes results (evidence: `README.md`)
- Capstone experiment → Warehouse query: executes query (evidence: `work/run_capstone.py`)
- Warehouse query → Hosted warehouse: queries data (evidence: `README.md`)
- Capstone experiment → Capstone results: exports metrics (evidence: `work/run_capstone.py`)
- Capstone results → Research renderer: supplies results
- Research renderer → Intern: presents findings
