Wnb

Latest version: v0.8.0

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

Scan your dependencies

Page 5 of 6

0.1.12

- Add unit tests for `GaussianWNB`
- Refactor and minor improvements in `GaussianWNB`

0.1.11

- Test whether the `GeneralNB` estimator adheres to scikit-learn conventions
- Convert some hidden methods to internal methods
- Fix classifiers in _setup.py_
- Add pypi build badge to README

0.1.10

- `np.mean()` is replaced with `np.average()` to estimate the expected value of normal distribution
- Finding classes and their count is done first in the `fit` method
- Minor change in error messages

0.1.9

- Rename `priors_` to `class_prior_` in `GeneralNB` and `GaussianWNB` classes
- Remove `ddof=1` while calculating standard deviation for normal distribution
- Fix a critical bug in calculating log probability in `GeneralNB` class
- Add a _tests_ directory with some unit tests for `GeneralNB`

0.1.8

- Add `_support` attribute and `support` property to `DistMixin` to indicate the support of the probability distribution
- Add `_check_support` internal method that checks if a given value lies within the support of the distribution, and if not, shows a warning
- Set `_type` attribute for `ContinuousDistMixin` and `DiscreteDistMixin` to "continuous" and "discrete", respectively
- Set the support of all the distribution classes in `wnb.dist` module in their `_support_` attribute

0.1.7

- Add a parent mixin `DistMixin` for continuous and discrete distribution mixin
- Restructure `ContinuousDistMixin` and `DiscreteDistMixin` by inherting from `DistMixin`
- Add `get_params()` method to distribution mixins to return the distribution parameters
- Add a common `__repr__` method to distribution mixins

Page 5 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.