How saif-ullah0/flyrank-ml-internship works
Purpose and Entry Points
FlyRank ML Internship is an educational, reproducible search-intelligence workflow built around anonymized content-refresh data. It supports two execution modes: local Python pipeline via scripts/run_all.py, and Google Colab notebooks for guided learning and assignment submissions. The bundled sample is data/raw/content_refresh_anonymized.csv; the full gated dataset is hosted externally on Hugging Face.
Reference ML Pipeline Orchestration
scripts/run_all.py is the main batch entry point and runs the ordered reference workflow. It coordinates feature preparation, baseline scoring, model training, evaluation/export, and PDF generation. Pipeline stages are separately executable, creating a clear boundary between reusable reference implementation and student work.
• scripts/run_all.py
• scripts/01_prepare_features.py
• scripts/04_evaluate_and_export.py
Feature and Label Construction
The pipeline first cleans the anonymized page-level data, builds model features, and defines the prediction label. This is the principal input contract: downstream baseline and learned models depend on its prepared feature vector rather than raw CSV fields. Column meanings and constraints are documented separately.
• scripts/01_prepare_features.py
• data/raw/content_refresh_anonymized.csv
• docs/data-dictionary.md
Baseline-versus-Learned Decisioning
A transparent hand-authored “fix this first” baseline provides an interpretable benchmark. Learned candidates—logistic regression, decision tree, and random forest—are trained with a client-holdout split, establishing a generalization boundary rather than evaluating on mixed client data. Shared modeling logic resides in the utility module.
• scripts/02_baseline_score.py
• scripts/03_train_model.py
• scripts/ml_utils.py
Evaluation and Action Outputs
Evaluation converts scores into operational decision-support artifacts: a ranked refresh queue, charts, and a Markdown model report. The final stage renders a shareable PDF summary. Outputs are recommendations for review prioritization, not claims to predict Google’s ranking algorithm.
• scripts/04_evaluate_and_export.py
• scripts/05_build_pdf_report.py
• outputs/model_report.md
Guided Learning and Student Workspace
Starter notebooks introduce discovery and readable models; work/notebooks/ is the durable student-owned progression from research question through validation, action playbook, and capstone. This separates the maintained reference pipeline from learner experiments and portfolio submissions.
• notebooks/01_first_look_and_discovery.ipynb
• work/notebooks/w05_model.ipynb
• work/notebooks/capstone.ipynb
Runtimes, External Services, and Governance
The runtime is Python with dependencies declared in requirements.txt, runnable locally or in Google Colab. Colab is the primary hosted notebook environment; GitHub templates/forks serve as each learner’s submission repository. Full-scale data is accessed through the gated Hugging Face FlyRank/internship-warehouse dataset. Data governance prohibits private client-data ingestion and is enforced through repository policy and CI smoke/data-path workflows.
• requirements.txt
• DATA_USE.md
• .github/workflows/data-path-smoke.yml
Main entry points: run_all.py Batch runner · 01_prepare_features.py Feature preparation · 04_evaluate_and_export.py Evaluation and export · 03_train_model.py Model training
Components 20
Reference Pipeline
Reproducible batch workflow.
- Batch runner · Orchestrates the ordered reference workflow.
scripts/run_all.py - Anonymized sample
data/raw/content_refresh_anonymized.csv - Feature preparation · Cleans records, constructs features, and defines the label.
scripts/01_prepare_features.py - Data dictionary · Defines source columns and constraints.
docs/data-dictionary.md - Fix-first baseline · Transparent benchmark scoring.
scripts/02_baseline_score.py - Model training · Trains learned candidates with client holdout.
scripts/03_train_model.py - Model utilities · Shared split and modeling logic.
scripts/ml_utils.py - Evaluation and export · Produces ranked decisions, charts, and report.
scripts/04_evaluate_and_export.py - Model report
outputs/model_report.md - PDF report builder · Renders the shareable summary.
scripts/05_build_pdf_report.py - PDF summary
Learning Workspace
Guided and student-owned notebooks.
- Discovery notebook
notebooks/01_first_look_and_discovery.ipynb - Student model notebook
work/notebooks/w05_model.ipynb - Student capstone · Portfolio and submission workspace.
work/notebooks/capstone.ipynb - Google Colab · Primary guided notebook environment.
- GitHub forks and templates · Learner submission destination.
Data Governance
Approved data access and enforcement.
- Gated full dataset · Hugging Face FlyRank/internship-warehouse.
- Data-use policy · Prohibits private client-data ingestion.
DATA_USE.md - Data-path CI smoke · Checks approved data-path workflows.
.github/workflows/data-path-smoke.yml
Other components
- Python environment
requirements.txt
Connections 24
- Batch runner → Feature preparation: runs
- Batch runner → Fix-first baseline: runs
- Batch runner → Model training: runs
- Batch runner → Evaluation and export: runs
- Batch runner → PDF report builder: runs
- Anonymized sample → Feature preparation: input
- Data dictionary → Feature preparation: defines fields
- Feature preparation → Fix-first baseline: prepared features
- Feature preparation → Model training: features and label
- Model utilities → Model training: shared logic
- Fix-first baseline → Evaluation and export: benchmark scores
- Model training → Evaluation and export: holdout predictions
- Model utilities → Evaluation and export: shared evaluation
- Evaluation and export → Model report: exports
- Model report → PDF report builder: source report
- PDF report builder → PDF summary: renders
- Python environment → Batch runner: runs
- Google Colab → Discovery notebook: hosts
- Google Colab → Student model notebook: hosts
- Student model notebook → Student capstone: progresses to
- Student capstone → GitHub forks and templates: submitted through
- Gated full dataset → Anonymized sample: full-scale alternative
- Data-use policy → Gated full dataset: governs access
- Data-path CI smoke → Data-use policy: enforces