{"id":19267081,"url":"https://github.com/mljs/naive-bayes","last_synced_at":"2025-04-21T19:32:35.807Z","repository":{"id":34631315,"uuid":"38581566","full_name":"mljs/naive-bayes","owner":"mljs","description":"Naive bayes classifier.","archived":false,"fork":false,"pushed_at":"2019-06-29T11:15:57.000Z","size":1302,"stargazers_count":48,"open_issues_count":6,"forks_count":14,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-01T15:41:58.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/mljs.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-05T19:44:13.000Z","updated_at":"2023-08-31T17:58:14.000Z","dependencies_parsed_at":"2022-07-28T18:19:48.394Z","dependency_job_id":null,"html_url":"https://github.com/mljs/naive-bayes","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fnaive-bayes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fnaive-bayes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fnaive-bayes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mljs%2Fnaive-bayes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mljs","download_url":"https://codeload.github.com/mljs/naive-bayes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250120090,"owners_count":21378135,"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-11-09T20:10:02.262Z","updated_at":"2025-04-21T19:32:35.802Z","avatar_url":"https://github.com/mljs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ml-naivebayes\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n\nNaive bayes classifiers.\n\n## Installation\n\n`npm install ml-naivebayes`\n\n## [API Documentation](https://mljs.github.io/naive-bayes/)\n\n## Usage\n\n### [GaussianNB](./src/GaussianNB.js)\n\n```js\n// assuming that you created Xtrain, Xtest, Ytrain, Ytest\nimport { GaussianNB } from 'ml-naivebayes';\n\nvar model = new GaussianNB();\nmodel.train(Xtrain, Ytrain);\n\nvar predictions = model.predict(Xtest);\n```\n\n### [MultinomialNB](./src/MultinomialNB.js)\n\n```js\n// assuming that you created Xtrain, Xtest, Ytrain, Ytest\nimport { MultinomialNB } from 'ml-naivebayes';\n\nvar model = new MultinomialNB();\nmodel.train(Xtrain, Ytrain);\n\nvar predictions = model.predict(Xtest);\n```\n\n## Authors\n\n* [Jefferson Hernandez](https://github.com/JeffersonH44)\n\n## License\n\n[MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/ml-naivebayes.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/ml-naivebayes\n[travis-image]: https://img.shields.io/travis/mljs/naive-bayes/master.svg?style=flat-square\n[travis-url]: https://travis-ci.org/mljs/naive-bayes\n[codecov-image]: https://img.shields.io/codecov/c/github/mljs/naive-bayes.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/mljs/naive-bayes\n[download-image]: https://img.shields.io/npm/dm/ml-naivebayes.svg?style=flat-square\n[download-url]: https://npmjs.org/package/ml-naivebayes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmljs%2Fnaive-bayes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmljs%2Fnaive-bayes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmljs%2Fnaive-bayes/lists"}