{"id":31241678,"url":"https://github.com/ph-7/python-glm-ml-pipeline","last_synced_at":"2026-05-18T02:10:16.248Z","repository":{"id":314822974,"uuid":"1028296799","full_name":"pH-7/Python-GLM-ML-Pipeline","owner":"pH-7","description":"ML Python - Logistic Regression (GLM)","archived":false,"fork":false,"pushed_at":"2025-10-15T08:20:22.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-15T22:57:42.154Z","etag":null,"topics":["glm","glm-python","logistic-regression","ml-api","scikit-learn","scikit-learn-python","scikitlearn-machine-learning"],"latest_commit_sha":null,"homepage":"https://github.com/pH-7/PythonGMLMLPipeline","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pH-7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"ko_fi":"phenry","github":"pH-7"}},"created_at":"2025-07-29T10:14:39.000Z","updated_at":"2025-10-15T08:20:25.000Z","dependencies_parsed_at":"2025-09-23T00:18:23.910Z","dependency_job_id":null,"html_url":"https://github.com/pH-7/Python-GLM-ML-Pipeline","commit_stats":null,"previous_names":["ph-7/python-glm-ml-pipeline"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pH-7/Python-GLM-ML-Pipeline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FPython-GLM-ML-Pipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FPython-GLM-ML-Pipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FPython-GLM-ML-Pipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FPython-GLM-ML-Pipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pH-7","download_url":"https://codeload.github.com/pH-7/Python-GLM-ML-Pipeline/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pH-7%2FPython-GLM-ML-Pipeline/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["glm","glm-python","logistic-regression","ml-api","scikit-learn","scikit-learn-python","scikitlearn-machine-learning"],"created_at":"2025-09-23T00:18:11.127Z","updated_at":"2026-05-18T02:10:16.238Z","avatar_url":"https://github.com/pH-7.png","language":"Python","funding_links":["https://ko-fi.com/phenry","https://github.com/sponsors/pH-7"],"categories":[],"sub_categories":[],"readme":"# 🚀 ML Python Pipeline: Logistic Regression (GLM)\n\n[![Learn Data Science with a Python GML Pipeline for Logistic Regression with FastAPI, scikit learn, ...](https://i1.ytimg.com/vi/K5_O-kSyiyg/sddefault.jpg)](https://www.youtube.com/watch?v=K5_O-kSyiyg)\n\n_**[→ Watch it directly on YouTube](https://www.youtube.com/watch?v=K5_O-kSyiyg)**_\n\n\n**ML API** that predicts binary classes using **scikit-learn** and FastAPI.\n\n- Model trained on breast cancer dataset\n- REST API with FastAPI - real-time requests\n- Docker support\n- Environment variable configuration\n- Citable research-ready API\n- MIT Licensed\n\n## 📂 Project Structure\n\n```plaintext\n.\n├── app/                # FastAPI application\n├── train/              # Training scripts\n├── assets/images/      # Images, diagrams\n├── requirements.txt    # Python dependencies\n├── Dockerfile\n├── .env.dist           # Sample environment variables\n├── LICENSE.md\n└── README.md\n```\n\n## 🔋 Run Locally\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/your-username/Python_GML_MLPipeline.git\ncd Python_GML_MLPipeline\n```\n\n2. Create and activate a virtual environment:\n```bash\npython -m venv venv\nsource venv/bin/activate\n```\n\n3. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n4. Copy `.env.dist` to `.env` and configure your environment variables:\n```env\nPORT=8000\nMODEL_PATH=train/model.pkl\n```\n\n5. Train the model:\n```bash\ncd train/\npython train_model.py\ncd ..\n```\n\n6. Start the server:\n```bash\nuvicorn app.main:app --reload --port $PORT\n```\n\n## 🐟 Docker\n\n1. Build the Docker image:\n```bash\ndocker build -t ml-api .\n```\n\n2. Run the container:\n```bash\ndocker run --env-file .env -p 8000:8000 ml-api\n```\n\nVisit `http://127.0.0.1:8000/docs` for Swagger UI.\n\n\n## 👋 Author\n\n[![Pierre-Henry Soria](https://avatars0.githubusercontent.com/u/1325411?s=200)](https://ph7.me \"Pierre-Henry Soria, Software Developer\")\n\nMade with ❤️ by **[Pierre-Henry Soria](https://pierrehenry.be)**. A super passionate \u0026 enthusiastic Problem-Solver / Senior Software Engineer. Also a true cheese 🧀, ristretto ☕️, and dark chocolate lover! 😋\n\n[![@phenrysay](https://img.shields.io/badge/x-000000?style=for-the-badge\u0026logo=x)](https://x.com/phenrysay \"Follow Me on X\")  [![pH-7](https://img.shields.io/badge/GitHub-100000?style=for-the-badge\u0026logo=github\u0026logoColor=white)](https://github.com/pH-7 \"My GitHub\")  [![YouTube Tech Videos](https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge\u0026logo=youtube\u0026logoColor=white)](https://www.youtube.com/@pH7Programming/videos \"My YouTube Tech Engineering Channel\")  [![BlueSky](https://img.shields.io/badge/BlueSky-00A8E8?style=for-the-badge\u0026logo=bluesky\u0026logoColor=white)](https://bsky.app/profile/pierrehenry.dev \"Follow Me on BlueSky\")\n\n## 📄 License\n\nDistributed under the [MIT License](LICENSE.md) 🎉 Happy hacking! 🤠\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph-7%2Fpython-glm-ml-pipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fph-7%2Fpython-glm-ml-pipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fph-7%2Fpython-glm-ml-pipeline/lists"}