github.com/jbrukh/bayesian
v1.1.0
#2778 most downloaded on Go modules
jbrukh/bayesian
What this package is like to depend on
Last release 8 months ago
07 Dec 2025
Release timing varies
gaps range from 5 weeks to 3.1 years
Most releases are documented
notes for 3 of 4 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
22 releases · first in 2011
4 releases in the last 12 months
see the full history below
Release timeline
22 releases · Dec 2011 to Dec 2025Releases
latest 22-
v1.1.007 Dec 2025Release notes
Open source →- Add AddClass method to add new classes after classifier creation
- Add RWMutex to protect Classes and datas from concurrent access
- Add locks to all public methods for thread safety:
- RLock for read operations (LogScores, ProbScores, etc.)
- Lock for write operations (Learn, Observe, AddClass, etc.)
- Add ErrClassExists and ErrAlreadyConverted error types
- Add comprehensive tests for AddClass functionality
- Add concurrent access tests to verify thread safety
All methods are now safe for concurrent use.
🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.5 [email protected]
-
v1.0.207 Dec 2025Nothing published for this version
-
v1.0.107 Dec 2025Release notes
Open source →Improvements:
- Implement Laplace smoothing for better numerical precision
- Extract common constructor logic (reduced code duplication)
- Fix WriteClassesToFile to properly propagate errors
- Add O_TRUNC flag to file writes to prevent stale data
Test coverage: 99.5%
🤖 Generated with Claude Code
-
v1.0.007 Dec 2025Release notes
Open source →This release modernizes the bayesian library for modern Go:
-
New Classify, ClassifyProb, ClassifySafe methods that return Class directly
instead of an index (addresses #15) -
Added go.mod with Go 1.22 minimum version
-
Added GitHub Actions CI (tests on Go 1.22 and 1.23)
-
100% test coverage
-
Renamed WriteTo to WriteGob for clarity
-
Fixed variadic argument forwarding in test helper
-
Fixed typos in comments
-
WriteTo method renamed to WriteGob
-
Minimum Go version is now 1.22
Full documentation: https://pkg.go.dev/github.com/jbrukh/bayesian
-
-
v0.0.0-20231117143245-13ae6f916c7a17 Nov 2023 pre-releaseNothing published for this version
-
v0.0.0-20230423142728-ab66f8feaf9723 Apr 2023 pre-releaseNothing published for this version
-
v0.0.0-20200318221351-d726b684ca4a18 Mar 2020 pre-releaseNothing published for this version
-
v0.0.0-20190218043818-13a31617141318 Feb 2019 pre-releaseNothing published for this version
-
v0.0.0-20161210175230-bf3f261f9a9c10 Dec 2016 pre-releaseNothing published for this version
-
v0.0.0-20160824211235-b89451d102de24 Aug 2016 pre-releaseNothing published for this version
-
v0.0.0-20160718110437-851ca1ae0cd818 Jul 2016 pre-releaseNothing published for this version
-
v0.0.0-20160602135859-a65fd1effddb02 Jun 2016 pre-releaseNothing published for this version
-
v0.0.0-20160601224229-f708d291153901 Jun 2016 pre-releaseNothing published for this version
-
v0.0.0-20160323013911-bb8c7464612e23 Mar 2016 pre-releaseNothing published for this version
-
v0.0.0-20160126204938-ed08a9b775ac26 Jan 2016 pre-releaseNothing published for this version
-
v0.0.0-20151214144356-35eb93528ee214 Dec 2015 pre-releaseNothing published for this version
-
v0.0.0-20150420142506-78b283ad333920 Apr 2015 pre-releaseNothing published for this version
-
v0.0.0-20140924173105-39c8be598dcc24 Sep 2014 pre-releaseNothing published for this version
-
v0.0.0-20131024173840-258140fc695724 Oct 2013 pre-releaseNothing published for this version
-
v0.0.0-20130312140320-f13a90b89eba12 Mar 2013 pre-releaseNothing published for this version
-
v0.0.0-20111202215358-2177c82d4d5a02 Dec 2011 pre-releaseNothing published for this version
-
v0.0.0-20111201032251-0ea544e8269c01 Dec 2011 pre-releaseNothing published for this version