{"id":20645961,"url":"https://github.com/jakecyr/bayesian-network","last_synced_at":"2025-03-09T15:57:24.716Z","repository":{"id":51541850,"uuid":"89548716","full_name":"jakecyr/bayesian-network","owner":"jakecyr","description":"Naive Bayes Classifier built in Node.js","archived":false,"fork":false,"pushed_at":"2022-12-27T18:19:51.000Z","size":4838,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-18T04:37:28.505Z","etag":null,"topics":["bayesian-network","bayesian-networks","classifier","machine-learning","nodejs"],"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/jakecyr.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":"2017-04-27T02:50:15.000Z","updated_at":"2022-12-27T18:19:53.000Z","dependencies_parsed_at":"2023-01-31T05:01:05.117Z","dependency_job_id":null,"html_url":"https://github.com/jakecyr/bayesian-network","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecyr%2Fbayesian-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecyr%2Fbayesian-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecyr%2Fbayesian-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakecyr%2Fbayesian-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakecyr","download_url":"https://codeload.github.com/jakecyr/bayesian-network/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242714050,"owners_count":20173581,"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-network","bayesian-networks","classifier","machine-learning","nodejs"],"created_at":"2024-11-16T16:22:49.626Z","updated_at":"2025-03-09T15:57:24.695Z","avatar_url":"https://github.com/jakecyr.png","language":"JavaScript","readme":"# Bayesian Network\n\nA simple Bayesian network based on Baye's rule and the conditional independence assumption.\n\n## Example Usage\n\n```javascript\nconst classifier = new BayesianNetwork();\n\nclassifier.addDocument(\"hello you are amazing\", \"positive\");\nclassifier.addDocument(\"today is a beautiful day\", \"positive\");\nclassifier.addDocument(\"its dark out today\", \"negative\");\nclassifier.addDocument(\"today was bad\", \"negative\");\n\nclassifier.calculateLogFrequencies();\n\nconsole.log(classifier.classify('hello you are great'));\n\n/*\n{\n  classification: { label: 'POSITIVE', value: -6.238324625039508 },\n  labels: { POSITIVE: -6.238324625039508, NEGATIVE: -6.238324625039508 }\n}\n*/\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakecyr%2Fbayesian-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakecyr%2Fbayesian-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakecyr%2Fbayesian-network/lists"}