Wnb

Latest version: v0.8.0

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

0.8.0

What's Changed
* feat: add support for laplace distribution by msamsami in https://github.com/msamsami/wnb/pull/47
* feat: add docstring examples, improve error weights and class prior initialization by msamsami in https://github.com/msamsami/wnb/pull/48
* feat: add `var_smoothing` parameter to `GaussianWNB` by msamsami in https://github.com/msamsami/wnb/pull/49
* fix: make `distributions` param positional-or-keyword in `GeneralNB` by msamsami in https://github.com/msamsami/wnb/pull/50


**Full Changelog**: https://github.com/msamsami/wnb/compare/v0.7.0...v0.8.0

---

🔧 GeneralNB's `distributions` parameter is now positional-or-keyword, meaning that both styles below work:

python
clf = GeneralNB([D.NORMAL, D.POISSON])

python
clf = GeneralNB(distributions=[D.NORMAL, D.POISSON])

0.7.0

What's Changed
* feat: add parameter constraints and validations, add `_fit_context` decorator by msamsami in https://github.com/msamsami/wnb/pull/44
* feat: add support for specifying distributions as a list of tuples by msamsami in https://github.com/msamsami/wnb/pull/45
* doc: minor update in getting started section of RAEDME by msamsami in https://github.com/msamsami/wnb/pull/46

---

🎉 Now you specify `GeneralNB`'s distributions as a list of tuples:
python
from wnb import GeneralNB, Distribution as D

gnb = GeneralNB(
distributions=[
(D.NORMAL, "col1"),
(D.BERNOULLI, "col2"),
(D.EXPONENTIAL, ["col3", "col4"])
]
)


---

**Full Changelog**: https://github.com/msamsami/wnb/compare/v0.6.0...v0.7.0

0.6.0

What's Changed
* feat: refactor `GeneralNB` and `GaussianWNB`, improve validation, and enhance scikit-learn compatibility by msamsami in https://github.com/msamsami/wnb/pull/43


**Full Changelog**: https://github.com/msamsami/wnb/compare/v0.5.1...v0.6.0

0.5.1

What's Changed
* patch: use `uv` for package management, refactor github workflows, fix bug in handling complex arrays by msamsami in https://github.com/msamsami/wnb/pull/42


**Full Changelog**: https://github.com/msamsami/wnb/compare/v0.5.0...v0.5.1

0.5.0

What's Changed
* feat: add `var_smoothing` parameter to `GeneralNB`, add pre-support for scikit-learn 1.7 by msamsami in https://github.com/msamsami/wnb/pull/41


**Full Changelog**: https://github.com/msamsami/wnb/compare/v0.4.0...v0.5.0

0.4.0

What's Changed
* maint: fix build workflow by msamsami in https://github.com/msamsami/wnb/pull/38
* fix: update build badge in README by msamsami in https://github.com/msamsami/wnb/pull/39
* maint: add support for python 3.13, numpy 2, and scikit-learn 1.6 by msamsami in https://github.com/msamsami/wnb/pull/40


**Full Changelog**: https://github.com/msamsami/wnb/compare/v0.3.1...v0.4.0

Page 1 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.