{"id":50878406,"url":"https://github.com/Tradeshift/blayze","last_synced_at":"2026-07-03T02:01:21.925Z","repository":{"id":39580877,"uuid":"132719809","full_name":"Tradeshift/blayze","owner":"Tradeshift","description":"A fast and flexible Naive Bayes implementation for the JVM","archived":false,"fork":false,"pushed_at":"2026-02-02T12:13:43.000Z","size":9153,"stargazers_count":20,"open_issues_count":16,"forks_count":7,"subscribers_count":10,"default_branch":"master","last_synced_at":"2026-02-02T21:26:42.437Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/Tradeshift.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-05-09T07:38:09.000Z","updated_at":"2026-02-02T10:13:25.000Z","dependencies_parsed_at":"2023-10-05T02:10:39.643Z","dependency_job_id":"beb9a4ee-697a-4131-8935-6b765a6bb314","html_url":"https://github.com/Tradeshift/blayze","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Tradeshift/blayze","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tradeshift%2Fblayze","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tradeshift%2Fblayze/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tradeshift%2Fblayze/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tradeshift%2Fblayze/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tradeshift","download_url":"https://codeload.github.com/Tradeshift/blayze/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tradeshift%2Fblayze/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35069183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-15T12:00:25.795Z","updated_at":"2026-07-03T02:01:21.891Z","avatar_url":"https://github.com/Tradeshift.png","language":"Kotlin","funding_links":[],"categories":["人工智能"],"sub_categories":["机器学习"],"readme":"# blayze\n\nA fast and flexible Bayesian Naive Bayes implementation for the JVM written in Kotlin.\n\n * Fully supports the online learning paradigm, in which data, and even new features, are added as they become available.\n * Reasonably fast and memory efficient. We've trained a document classifier with tens of thousands of classes on hundreds of thousands of documents, and ironed out most of the hot-spots.\n * Naturally works with few samples, by integrating out the uncertainty on estimated parameters.\n * Models and data structures are immutable such that they are concurrency friendly.\n * Efficient serialization and deserialization using protobuf.\n * Missing and unknown features at prediction time are properly handled.\n * Minimal dependencies.\n  \n## Usage\n\nGet the latest artifact from [maven central](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.tradeshift%22%20a%3A%22blayze%22) \n\n````java\n//Java 9\nModel model = new Model().batchAdd(List.of(new Update( //Models are immutable\n        new Inputs( // Supports multiple feature types\n                Map.of( //Text features\n                        \"subject\", \"Attention, is it true?\", //features are named.\n                        \"body\", \"Good day dear beneficiary. This is Secretary to president of Benin republic is writing this email ...\" // multiple features of the same type have different names\n                ),\n                Map.of( //Categorical features\n                        \"sender\", \"WWW.@galaxy.ocn.ne.jp\"\n                ),\n                Map.of( //Gaussian features\n                        \"n_words\", 482.\n                )\n        ),\n        \"spam\" // the outcome, in this case spam.\n)));\n\nMap\u003cString, Double\u003e predictions = model.predict(new Inputs(/*...*/));// e.g. {\"spam\": 0.624, \"ham\": 0.376}\n````\n\n## Built With\n * [Kotlin](https://kotlinlang.org/) - Language\n * [Maven](https://maven.apache.org/) - Dependency Management\n * [Protocol Buffers](https://developers.google.com/protocol-buffers/) - Serialization\n \n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning.\n\n## Release a new version\n- [Create a Sonatype account](https://issues.sonatype.org/secure/Signup!default.jspa)\n  - The created username and password will be referred to as `\u003csonatype_user\u003e` and `\u003csonatype_pwd`, respectively.\n- Create a Sonatype Jira ticket of type `Publishing Support` requesting access to `com.tradeshift.blayze`.\nIt must be approved by an existing user with write access. It can take a couple of days before access is granted.\n- Create a PR that updates the version in `pom.xml` along with the code changes. Merge it to `master` or `v4` \nonce it is approved. \n- Generate a gpg key: `gpg --gen-key`\n- List gpg keys: `gpg --list-keys`\n- Extract the key id of the previously generated gpg key. It will be referred to as `\u003cgpg_key_id\u003e` from now\n- Encrypt `\u003csonatype_pwd\u003e` using `mvn --encrypt-password`. The encrypted value is referred to as `\u003csonatype_pwd_enc\u003e`\n- Create a new server in `~/.m2/settings.xml`\n```\n\u003csettings\u003e\n    \u003cservers\u003e\n        \u003cserver\u003e\n            \u003cid\u003eossrh-blayze\u003c/id\u003e\n            \u003cusername\u003e\u003csonatype_user\u003e\u003c/username\u003e\n            \u003cpassword\u003e\u003csonatype_pwd_enc\u003e\u003c/password\u003e\n        \u003c/server\u003e      \n    \u003c/servers\u003e\n\u003c/settings\u003e\n```\n- Run `mvn clean deploy -P release -Dgpg.keyname=\u003cgpg_key_id\u003e`\n- For further details, check [Sonatype documentation](https://central.sonatype.org/publish/publish-guide/)\n\n## Backwards compatibility\nWe publish security updates for major version `4.x.x` (branch `v4`) as well as `6.x.x` (branch `master`)\n\n## Authors\n\n * [Rasmus Berg Palm](https://github.com/rasmusbergpalm)\n * [Fuyang Liu](https://github.com/liufuyang)\n * [Lasse Reedtz](https://github.com/lre)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTradeshift%2Fblayze","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTradeshift%2Fblayze","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTradeshift%2Fblayze/lists"}