{"id":20663473,"url":"https://github.com/shaunabanana/simple-bayesnet","last_synced_at":"2026-05-02T11:39:07.829Z","repository":{"id":42968354,"uuid":"186550034","full_name":"shaunabanana/simple-bayesnet","owner":"shaunabanana","description":"A simple visual tool to build and run inference on your own Bayesian Network.","archived":false,"fork":false,"pushed_at":"2022-04-06T09:25:13.000Z","size":3538,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-16T19:18:29.668Z","etag":null,"topics":["bayesian-inference","bayesian-network","data-science","eel","gui","machine-learning","tool","visualization","vuejs2"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/shaunabanana.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}},"created_at":"2019-05-14T05:22:14.000Z","updated_at":"2023-03-17T12:16:36.000Z","dependencies_parsed_at":"2022-09-06T16:11:22.175Z","dependency_job_id":null,"html_url":"https://github.com/shaunabanana/simple-bayesnet","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/shaunabanana%2Fsimple-bayesnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunabanana%2Fsimple-bayesnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunabanana%2Fsimple-bayesnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaunabanana%2Fsimple-bayesnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaunabanana","download_url":"https://codeload.github.com/shaunabanana/simple-bayesnet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242821488,"owners_count":20190654,"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":["bayesian-inference","bayesian-network","data-science","eel","gui","machine-learning","tool","visualization","vuejs2"],"created_at":"2024-11-16T19:18:09.744Z","updated_at":"2026-05-02T11:39:07.789Z","avatar_url":"https://github.com/shaunabanana.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleBN\nA simple visual tool to build and run inference on your own Bayesian Network. Originally written for my undergraduate thesis.\n\n![screenshot](./assets/screenshot.png)\n\n## Features\n* Load your own data in CSV/Excel format.\n* Define custom network structures.\n* Condition on observations to see real-time inference result on other variables.\n* Save \u0026 load your model.\n* Overall a nice interface and smooth interactions.\n\n## How to use\n\n### Installation\nYou need to have [Python 3](https://www.python.org/downloads/) installed.\n\nOpen up your favorite terminal, and run the following command to install the required libraries:\n```\npip install eel pandas openpyxl pgmpy python-datauri\n```\n\nFinally, clone this repo. In the base directory of this repo, start `app.py` to see the GUI:\n```\npython app.py\n```\n\n### Loading data / model\nYour dataset should be a CSV/Excel file. Each column is a variable, and the first row contains the variable names, like so:\n\n| Var 1  | Var 2  | ... | Var N  |\n| ------ | ------ | --- | ------ |\n| Value  | Value  | ... | Value  |\n| Value  | Value  | ... | Value  |\n| Value  | Value  | ... | Value  |\n| ...    | ...    | ... | ...    |\n\nA sample excerpt of the mushroom dataset is included for your reference in the `sample` folder.\n\nAlternatively, you can also load a model you have saved.\n\n### Reading the visualization\nYou'll notice that each variable has a ring surrounding it. This is a pie chart showing the distribution of values of this variable.\n\nWhen you click on a variable, a panel shows up. This panel shows you the detailed distribution statistics, as well as buttons for you to set a specific observed value to that variable, thus \"conditioning\" it.\n\n### Defining network structure\n When a variable is selected, you can drag from it onto another variable to create a link. Alternatively, you can select a variable and click \"Batch Linking,\" this way you can simply click on other variables to create links.\n\nTo remove a link, click on the circle handle of that link and click the \"Delete Link\" button.\n\nIf a variable is irrelavent, you can also select it and click \"Ignore,\" so that it will not participate in any inferences.\n\n### Running inference\nClick \"Start Inference\" to start running inference. Depending on your model complexity and dataset size, it may take some time to finish. When inference is activated, any changes you make will trigger another inference, and the visualization stays updated.\n\n### Saving models\nThe models are saved as a json file. You can click the \"Load Dataset/Model\" button to load it again.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaunabanana%2Fsimple-bayesnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaunabanana%2Fsimple-bayesnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaunabanana%2Fsimple-bayesnet/lists"}