{"id":22799124,"url":"https://github.com/thomd/machine-learning-ops-with-airflow","last_synced_at":"2026-05-03T02:44:08.442Z","repository":{"id":153276239,"uuid":"623931629","full_name":"thomd/machine-learning-ops-with-airflow","owner":"thomd","description":"Train a Machine Learning Model using Apache Airflow","archived":false,"fork":false,"pushed_at":"2023-04-05T13:20:56.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T19:14:58.119Z","etag":null,"topics":["airflow","mlops","python","sklearn"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thomd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-05T11:49:15.000Z","updated_at":"2023-08-18T06:41:26.000Z","dependencies_parsed_at":"2024-04-19T11:15:59.191Z","dependency_job_id":null,"html_url":"https://github.com/thomd/machine-learning-ops-with-airflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thomd/machine-learning-ops-with-airflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fmachine-learning-ops-with-airflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fmachine-learning-ops-with-airflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fmachine-learning-ops-with-airflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fmachine-learning-ops-with-airflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomd","download_url":"https://codeload.github.com/thomd/machine-learning-ops-with-airflow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Fmachine-learning-ops-with-airflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32556771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T00:31:16.350Z","status":"online","status_checked_at":"2026-05-03T02:00:09.297Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["airflow","mlops","python","sklearn"],"created_at":"2024-12-12T07:07:58.184Z","updated_at":"2026-05-03T02:44:08.427Z","avatar_url":"https://github.com/thomd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Machine Learning Training using Apache Airflow\n\nThis is an **educational project** and **proof-of-concept**.\n\nThe pipeline trains a **Random Forest classifier** and a **Logistic Regression classifier** using the \n[Iris flower dataset](https://en.wikipedia.org/wiki/Iris_flower_data_set) and identifies the best model by accuracy.\n\n## ML Pipeline\n\n```\nairflow dags show ml | sed 1d | graph-easy --as=boxart\n\n╭──────────────────╮     ╭────────────────────╮     ╭────────────────╮     ╭─────────────────────╮\n│ download_dataset │ ──▶ │  data_processing   │ ──▶ │ train_logistic │ ──▶ │ identify_best_model │\n╰──────────────────╯     ╰────────────────────╯     ╰────────────────╯     ╰─────────────────────╯\n                           │                                                 ▲\n                           │                                                 │\n                           ▼                                                 │\n                         ╭────────────────────╮                              │\n                         │ train_randomforest │ ─────────────────────────────┘\n                         ╰────────────────────╯\n```\n\n## Setup\n\n    pyenv shell 3.10.9\n    python -m venv .venv\n    source .venv/bin/activate\n    export AIRFLOW_HOME=$(pwd)\n    export SQLALCHEMY_SILENCE_UBER_WARNING=1\n    export AIRFLOW__CORE__LOAD_EXAMPLES=False\n    pip install apache-airflow numpy pandas scikit-learn\n    airflow db init\n    airflow scheduler\n\n## Train\n\n    airflow dags unpause ml\n    airflow dags trigger ml\n    cat accuracy.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomd%2Fmachine-learning-ops-with-airflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomd%2Fmachine-learning-ops-with-airflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomd%2Fmachine-learning-ops-with-airflow/lists"}