{"id":17456662,"url":"https://github.com/martinthoma/model-lab","last_synced_at":"2026-04-28T13:38:02.735Z","repository":{"id":138046028,"uuid":"162009569","full_name":"MartinThoma/model-lab","owner":"MartinThoma","description":"Making models accessible","archived":false,"fork":false,"pushed_at":"2018-12-31T20:17:10.000Z","size":217,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-20T17:06:14.403Z","etag":null,"topics":["flask","machine-learning","python-3"],"latest_commit_sha":null,"homepage":null,"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/MartinThoma.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":"2018-12-16T14:32:44.000Z","updated_at":"2018-12-31T20:17:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"85a96a96-6500-4016-b7d1-f1e70524a28f","html_url":"https://github.com/MartinThoma/model-lab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MartinThoma/model-lab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinThoma%2Fmodel-lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinThoma%2Fmodel-lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinThoma%2Fmodel-lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinThoma%2Fmodel-lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MartinThoma","download_url":"https://codeload.github.com/MartinThoma/model-lab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinThoma%2Fmodel-lab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32383781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["flask","machine-learning","python-3"],"created_at":"2024-10-18T02:49:09.249Z","updated_at":"2026-04-28T13:38:02.708Z","avatar_url":"https://github.com/MartinThoma.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# model_lab\n\nThe model_lab helps machine learning developers to make their models accessible\nfor humans.\n\nDuring a machine learning project you want that humans can interact with it.\nIt might be simply yourself, smoke-testing if the model gets some basic inputs\nright. Or a stakeholder who is not quite convinced that your model performs as\nadvertised. Or a colleague whom you want to show what you're working on.\n\nHere you can see how it might look like:\n\n\u003ckbd\u003e\n  \u003cimg src=\"docs/titanic-overview.png\" /\u003e\n\u003c/kbd\u003e\n\nThis interface was created from a [`description.json`](./model_lab/ml_models/titanic/description.json)\n\n\n## Installation\n\nInstall the model_lab with\n\n```\n$ pip install -e git+https://github.com/MartinThoma/model_lab.git\n```\n\n## Usage\n\nThe following command starts a web server:\n\n```\n$ python3 run.py\n```\n\nSimply place your model and additinal files in the `model_lab/ml_models` directory,\ndirectly next to the `titanic` example.\n\n\n## model.zip\n\nEach zip package consists of a model.py which contains an `infer(input_dict)` function and a `description.json`:\n\n```\n{\n    \"name\": \"Titanic Survival Model\",\n    \"parameters\": [\n        {\n            \"name\": \"Pclass\",\n            \"label\": \"Pclass\",\n            \"type\": \"int\",\n            \"comment\": \"Passenger Class: 1 (First Class) is the most expensive one, 3 is the cheapest\"\n        },\n        {\n            \"name\": \"age\",\n            \"label\": \"age\",\n            \"type\": \"float\",\n            \"comment\": \"\"\n        },\n        {\n            \"name\": \"SibSp\",\n            \"label\": \"SibSp\",\n            \"type\": \"float\",\n            \"comment\": \"# of siblings / spouses aboard the Titanic\"\n        },\n        {\n            \"name\": \"Parch\",\n            \"label\": \"Parch\",\n            \"type\": \"float\",\n            \"comment\": \"# of parents / children aboard the Titanic\"\n        },\n        {\n            \"name\": \"Fare\",\n            \"label\": \"Fare\",\n            \"type\": \"float\",\n            \"comment\": \"\"\n        }\n    ],\n    \"output\": [\n        {\n            \"name\": \"Survival Probability\",\n            \"comment\": \"Survival probability in [0, 1], where 0 means the model is certain that the passenger did not survive and 1 means it is certain that the passenger survived.\"\n        }\n    ],\n    \"archetypes\": [\n        {\n            \"name\": \"The mother\",\n            \"parameters\": {\n                \"Pclass\": 1,\n                \"age\": 42,\n                \"SibSp\": 12.34,\n                \"Parch\": 3.141,\n                \"Fare\": 2.141\n            }\n        }\n    ],\n    \"info\": {\n        \"text\": \"The model was trained on the values of 123 passangers of the titanic where it is known if the did / did not survive.\\n\\nThe model is an SVM with C = 1.234.\"\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinthoma%2Fmodel-lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartinthoma%2Fmodel-lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartinthoma%2Fmodel-lab/lists"}