# aneeqahabib/flyrank_ml_internship architecture

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

- Interactive diagram: https://gitdiagram.com/aneeqahabib/flyrank_ml_internship
- Repository: https://github.com/aneeqahabib/flyrank_ml_internship

## Overview

FlyRank ML Internship is both a guided applied-ML curriculum and a runnable content-refresh scoring reference. The principal workflow prepares an anonymized search dataset, builds a transparent baseline, trains and evaluates models, then exports a ranked review queue and reports. The README also documents first-win notebooks, weekly assignment work, capstone/lane exploration, and an optional larger hosted dataset. The sampled scripts establish pipeline orchestration and shared utilities; notebook and hosted-data internals were not sampled, so those links reflect README descriptions only.

Main entry points: [`scripts/run_all.py`](https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/run_all.py) (Pipeline runner), [`scripts/04_evaluate_and_export.py`](https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/04_evaluate_and_export.py) (Evaluation and queue), [`scripts/01_prepare_features.py`](https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/01_prepare_features.py) (Feature preparation), [`scripts/02_baseline_score.py`](https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/02_baseline_score.py) (Baseline scoring)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Intern Learning"]
  node_first_notebooks["First-win notebooks"]
  node_assignments["Weekly assignments"]
  node_capstone["Capstone workspace"]
  node_skills["ML learning skills"]
end

subgraph group_data["Data Inputs"]
  node_starter_csv[("Anonymized sample")]
  node_hosted_data[("Full hosted release")]
end

subgraph group_pipeline["Scoring Pipeline"]
  node_feature_prep["Feature preparation"]
  node_baseline["Baseline scoring"]
  node_model_training["Model training<br/>[03_train_model.py]"]
  node_evaluation["Evaluation and queue"]
  node_orchestrator["Pipeline runner<br/>[run_all.py]"]
end

subgraph group_results["Review Outputs"]
  node_pdf_report["PDF reporting"]
  node_output_artifacts["Ranked queue and charts"]
end

subgraph group_shared["Shared Runtime"]
  node_shared_utils["ML utilities<br/>[ml_utils.py]"]
end

node_intern(("ML intern"))

node_intern -->|"explores with"| node_first_notebooks
node_intern -->|"completes"| node_assignments
node_intern -->|"develops"| node_capstone
node_intern -->|"uses guidance"| node_skills
node_intern -->|"runs pipeline"| node_orchestrator
node_hosted_data -.->|"queried via DuckDB"| node_first_notebooks
node_starter_csv -->|"provides rows"| node_feature_prep
node_orchestrator -->|"launches"| node_feature_prep
node_orchestrator -->|"launches"| node_baseline
node_orchestrator -->|"launches"| node_model_training
node_orchestrator -->|"launches"| node_evaluation
node_orchestrator -->|"launches"| node_pdf_report
node_feature_prep -->|"prepares scoring input"| node_baseline
node_feature_prep -->|"prepares training input"| node_model_training
node_baseline -->|"supplies comparison scores"| node_model_training
node_baseline -->|"supplies baseline queue"| node_evaluation
node_model_training -->|"supplies predictions and metrics"| node_evaluation
node_evaluation -->|"writes queue and charts"| node_output_artifacts
node_evaluation -.->|"provides report inputs"| node_pdf_report
node_feature_prep -->|"uses shared helpers"| node_shared_utils
node_baseline -->|"uses shared helpers"| node_shared_utils
node_model_training -->|"uses shared helpers"| node_shared_utils
node_evaluation -->|"uses shared helpers"| node_shared_utils
node_orchestrator -->|"uses paths and JSON"| node_shared_utils

click node_first_notebooks "https://github.com/aneeqahabib/flyrank_ml_internship/tree/main/notebooks"
click node_assignments "https://github.com/aneeqahabib/flyrank_ml_internship/tree/main/work/notebooks"
click node_capstone "https://github.com/aneeqahabib/flyrank_ml_internship/tree/main/work"
click node_skills "https://github.com/aneeqahabib/flyrank_ml_internship/tree/main/skills"
click node_starter_csv "https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/data/raw/content_refresh_anonymized.csv"
click node_feature_prep "https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/01_prepare_features.py"
click node_baseline "https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/02_baseline_score.py"
click node_model_training "https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/03_train_model.py"
click node_evaluation "https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/04_evaluate_and_export.py"
click node_pdf_report "https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/05_build_pdf_report.py"
click node_output_artifacts "https://github.com/aneeqahabib/flyrank_ml_internship/tree/main/outputs"
click node_orchestrator "https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/run_all.py"
click node_shared_utils "https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/ml_utils.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_first_notebooks,node_assignments,node_capstone,node_skills toneBlue
class node_starter_csv,node_hosted_data toneAmber
class node_feature_prep,node_baseline,node_model_training,node_evaluation,node_orchestrator toneMint
class node_pdf_report,node_output_artifacts toneRose
class node_shared_utils,node_intern toneIndigo
```

## Components

### Intern Learning

- [First-win notebooks](https://github.com/aneeqahabib/flyrank_ml_internship/tree/main/notebooks): `notebooks`
- [Weekly assignments](https://github.com/aneeqahabib/flyrank_ml_internship/tree/main/work/notebooks): `work/notebooks`
- [Capstone workspace](https://github.com/aneeqahabib/flyrank_ml_internship/tree/main/work): `work`
- [ML learning skills](https://github.com/aneeqahabib/flyrank_ml_internship/tree/main/skills): `skills`

### Data Inputs

- [Anonymized sample](https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/data/raw/content_refresh_anonymized.csv): `data/raw/content_refresh_anonymized.csv`
- **Full hosted release**

### Scoring Pipeline

- [Feature preparation](https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/01_prepare_features.py): `scripts/01_prepare_features.py`
- [Baseline scoring](https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/02_baseline_score.py): `scripts/02_baseline_score.py`
- [Model training](https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/03_train_model.py): `scripts/03_train_model.py`
- [Evaluation and queue](https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/04_evaluate_and_export.py): `scripts/04_evaluate_and_export.py`
- [Pipeline runner](https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/run_all.py): `scripts/run_all.py`

### Review Outputs

- [PDF reporting](https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/05_build_pdf_report.py): `scripts/05_build_pdf_report.py`
- [Ranked queue and charts](https://github.com/aneeqahabib/flyrank_ml_internship/tree/main/outputs): `outputs`

### Shared Runtime

- [ML utilities](https://github.com/aneeqahabib/flyrank_ml_internship/blob/main/scripts/ml_utils.py): `scripts/ml_utils.py`

### Other components

- **ML intern**

## Connections

- ML intern → First-win notebooks: explores with (evidence: `README.md`)
- ML intern → Weekly assignments: completes (evidence: `README.md`)
- ML intern → Capstone workspace: develops (evidence: `README.md`)
- ML intern → ML learning skills: uses guidance (evidence: `README.md`)
- ML intern → Pipeline runner: runs pipeline (evidence: `README.md`)
- Full hosted release → First-win notebooks: queried via DuckDB (evidence: `README.md`)
- Anonymized sample → Feature preparation: provides rows (evidence: `scripts/01_prepare_features.py`)
- Pipeline runner → Feature preparation: launches (evidence: `scripts/run_all.py`)
- Pipeline runner → Baseline scoring: launches (evidence: `scripts/run_all.py`)
- Pipeline runner → Model training: launches (evidence: `scripts/run_all.py`)
- Pipeline runner → Evaluation and queue: launches (evidence: `scripts/run_all.py`)
- Pipeline runner → PDF reporting: launches (evidence: `scripts/run_all.py`)
- Feature preparation → Baseline scoring: prepares scoring input (evidence: `README.md`)
- Feature preparation → Model training: prepares training input (evidence: `README.md`)
- Baseline scoring → Model training: supplies comparison scores (evidence: `scripts/03_train_model.py`)
- Baseline scoring → Evaluation and queue: supplies baseline queue (evidence: `README.md`)
- Model training → Evaluation and queue: supplies predictions and metrics (evidence: `README.md`)
- Evaluation and queue → Ranked queue and charts: writes queue and charts (evidence: `scripts/04_evaluate_and_export.py`)
- Evaluation and queue → PDF reporting: provides report inputs
- Feature preparation → ML utilities: uses shared helpers (evidence: `scripts/01_prepare_features.py`)
- Baseline scoring → ML utilities: uses shared helpers (evidence: `scripts/02_baseline_score.py`)
- Model training → ML utilities: uses shared helpers (evidence: `scripts/03_train_model.py`)
- Evaluation and queue → ML utilities: uses shared helpers (evidence: `scripts/04_evaluate_and_export.py`)
- Pipeline runner → ML utilities: uses paths and JSON (evidence: `scripts/run_all.py`)
