{"id":15951527,"url":"https://github.com/timvink/demo_streamlit_threshold_classifier","last_synced_at":"2025-10-30T16:17:23.061Z","repository":{"id":66131536,"uuid":"280163376","full_name":"timvink/demo_streamlit_threshold_classifier","owner":"timvink","description":"Demonstrates how to use streamlit to set the threshold for a classifier","archived":false,"fork":false,"pushed_at":"2020-10-20T08:20:38.000Z","size":606,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T16:14:11.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/timvink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-07-16T13:37:13.000Z","updated_at":"2023-01-08T13:38:16.000Z","dependencies_parsed_at":"2024-05-20T14:32:38.049Z","dependency_job_id":null,"html_url":"https://github.com/timvink/demo_streamlit_threshold_classifier","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"2345d1252cf8a8e57d4a3f3bd07a8019f271d414"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timvink%2Fdemo_streamlit_threshold_classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timvink%2Fdemo_streamlit_threshold_classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timvink%2Fdemo_streamlit_threshold_classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timvink%2Fdemo_streamlit_threshold_classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timvink","download_url":"https://codeload.github.com/timvink/demo_streamlit_threshold_classifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248914115,"owners_count":21182359,"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":[],"created_at":"2024-10-07T13:02:30.715Z","updated_at":"2025-10-30T16:17:22.955Z","avatar_url":"https://github.com/timvink.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Streamlit App](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://share.streamlit.io/timvink/demo_streamlit_threshold_classifier/app.py)\n\n# Using streamlit to set the threshold for a classifier\n\n:notebook: This code accompanies the blog post at https://www.timvink.nl/streamlit-threshold-app/\n\n## Intro\n\nMachine learning classifiers can make binary predictions by setting a threshold on the predicted probabilities. Often it makes sense to set this threshold together with business stakeholders that understand the problem domain.\n\nThis repository demonstrates a [streamlit](https://docs.streamlit.io/en/stable/index.html) app that can facilitate the interactive setting of threshold.\n\n## App\n\nRun the app with:\n\n```bash\npip install -r requirements.txt\nstreamlit run app.py\n```\n\nThis is what it looks like:\n\n\u003cimg src=\"demo.gif\" style=\"max-height: 400px\" /\u003e\n\n## Further reading\n\nRead the full post at [timvink.nl/streamlit-threshold-app/](https://www.timvink.nl/streamlit-threshold-app/)\n\nOther resources:\n\n- [Streamlit video tutorial](https://calmcode.io/streamlit/hello-world.html) Crystal-clear and concise video tutorial by [calmcode.io](https://calmcode.io/)\n- [Streamlit 101: An in-depth introduction](https://towardsdatascience.com/streamlit-101-an-in-depth-introduction-fc8aad9492f2) Great example use-case on NYC airbnb data\n- [Streamlit API reference](https://docs.streamlit.io/en/stable/api.html#display-text) Overview of all the streamlist elements\n- [Streamlit community components](https://www.streamlit.io/components) \n- [awesome-streamlit](https://github.com/MarcSkovMadsen/awesome-streamlit) list of streamlit resources\n- [github streamlit topic](https://github.com/topics/streamlit) is a great way to discover more streamlit libraries\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimvink%2Fdemo_streamlit_threshold_classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimvink%2Fdemo_streamlit_threshold_classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimvink%2Fdemo_streamlit_threshold_classifier/lists"}