PackageTrack

Go modules ยท #2087

github.com/jbrukh/bayesian

v1.1.0jbrukh/bayesian โ†—

Release timeline

22 releases since 2011
2013201520172019202120232025

Releases

  1. v1.1.07 Dec 2025
    Release notes
    • 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]

    Open source โ†’
  2. v1.0.27 Dec 2025

    Nothing published for this version

  3. v1.0.17 Dec 2025
    Release notes

    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

    Open source โ†’
  4. v1.0.07 Dec 2025
    Release notes

    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

    Open source โ†’
  5. v0.0.0-20231117143245-13ae6f916c7a17 Nov 2023pre-release

    Nothing published for this version

  6. v0.0.0-20230423142728-ab66f8feaf9723 Apr 2023pre-release

    Nothing published for this version

  7. v0.0.0-20200318221351-d726b684ca4a18 Mar 2020pre-release

    Nothing published for this version

  8. v0.0.0-20190218043818-13a31617141318 Feb 2019pre-release

    Nothing published for this version

  9. v0.0.0-20161210175230-bf3f261f9a9c10 Dec 2016pre-release

    Nothing published for this version

  10. v0.0.0-20160824211235-b89451d102de24 Aug 2016pre-release

    Nothing published for this version

  11. v0.0.0-20160718110437-851ca1ae0cd818 Jul 2016pre-release

    Nothing published for this version

  12. v0.0.0-20160602135859-a65fd1effddb2 Jun 2016pre-release

    Nothing published for this version

  13. v0.0.0-20160601224229-f708d29115391 Jun 2016pre-release

    Nothing published for this version

  14. v0.0.0-20160323013911-bb8c7464612e23 Mar 2016pre-release

    Nothing published for this version

  15. v0.0.0-20160126204938-ed08a9b775ac26 Jan 2016pre-release

    Nothing published for this version

  16. v0.0.0-20151214144356-35eb93528ee214 Dec 2015pre-release

    Nothing published for this version

  17. v0.0.0-20150420142506-78b283ad333920 Apr 2015pre-release

    Nothing published for this version

  18. v0.0.0-20140924173105-39c8be598dcc24 Sept 2014pre-release

    Nothing published for this version

  19. v0.0.0-20131024173840-258140fc695724 Oct 2013pre-release

    Nothing published for this version

  20. v0.0.0-20130312140320-f13a90b89eba12 Mar 2013pre-release

    Nothing published for this version

  21. v0.0.0-20111202215358-2177c82d4d5a2 Dec 2011pre-release

    Nothing published for this version

  22. v0.0.0-20111201032251-0ea544e8269c1 Dec 2011pre-release

    Nothing published for this version