{"id":27948445,"url":"https://github.com/twilio-labs/ml-training-api","last_synced_at":"2025-05-07T14:58:44.690Z","repository":{"id":44679909,"uuid":"336358961","full_name":"twilio-labs/ml-training-api","owner":"twilio-labs","description":"A service template for asynchronous machine learning model training","archived":false,"fork":false,"pushed_at":"2024-11-24T05:01:08.000Z","size":4830,"stargazers_count":16,"open_issues_count":19,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T14:58:37.315Z","etag":null,"topics":["machine-learning","python"],"latest_commit_sha":null,"homepage":"","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/twilio-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-05T18:42:32.000Z","updated_at":"2025-04-09T10:17:46.000Z","dependencies_parsed_at":"2023-01-30T19:40:12.500Z","dependency_job_id":null,"html_url":"https://github.com/twilio-labs/ml-training-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilio-labs%2Fml-training-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilio-labs%2Fml-training-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilio-labs%2Fml-training-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilio-labs%2Fml-training-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twilio-labs","download_url":"https://codeload.github.com/twilio-labs/ml-training-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252902620,"owners_count":21822258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["machine-learning","python"],"created_at":"2025-05-07T14:58:43.815Z","updated_at":"2025-05-07T14:58:44.668Z","avatar_url":"https://github.com/twilio-labs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ml-training-api\n[![A Twilio Labs Project](https://img.shields.io/static/v1?label=\u0026message=Twilio-Labs\u0026color=F22F46\u0026labelColor=0D122B\u0026logo=twilio\u0026style=flat-square)](https://www.twilio.com/labs)\n\nThis is a simple python service template for training machine learning models asynchronously.\n\n## Falcon + Celery\n\nExample of how to handle training machine learning models asynchronously with Falcon, Celery, and message queues\n![diagram](/diagram.png)\n\n### Quick Start\n\nSpin up the containers:\n\n```sh\n$ docker-compose up -d --build\n```\n\nOpen your browser to http://localhost:8000/ping to view the app or to http://localhost:5555 to view the Flower dashboard.\n\nTrigger a new task with hyperparameters (optional):\n\n```sh\n$ curl -X POST http://localhost:8000/create \\\n    -d '{\"alpha\":0.5}' \\\n    -H \"Content-Type: application/json\"\n```\n\nCheck the status:\n\n```sh\n$ curl http://localhost:8000/status/\u003cTASK_ID\u003e\n```\n\nThe [model](https://github.com/twilio-labs/ml-training-api/tree/main/src/model) used in this repo is a general text classficiation model built using td-idf features and naive bayes model. But you can plug in any model of your own choice.\n\n## Let's work together\n\nEverything in this toolkit is released under [Twilio Labs](https://www.twilio.com/docs/labs) and fully open-source. If you find any problems with this, [please file an issue](https://github.com/twilio-labs/ml-training-api/issues) or even create a pull request to work together with us on the toolkit. We would love to hear your ideas and feedback!\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwilio-labs%2Fml-training-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwilio-labs%2Fml-training-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwilio-labs%2Fml-training-api/lists"}