Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jmschrei committed Aug 15, 2023
1 parent f17b1d2 commit b907ed4
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 3 deletions.
51 changes: 51 additions & 0 deletions docs/whats_new.rst
Expand Up @@ -5,6 +5,57 @@
Release History
===============

Version 1.0.2
==============

Highlights
----------

- A minor issue with Bayesian network structure learning has been patched by
@savyajha (thank you!) where, when multiple shortest paths exist, the one
returned would be OS dependent. Now, all shortest paths are found and sorted
before return.



Version 1.0.0
==============

Highlights
----------
- Minor bug fixed.


Version 1.0.0
==============

Highlights
----------

- This release marks a major milestone in the pomegranate saga.
- The Cython backend has been replaced with a PyTorch backend. Goodbye weird installation issues and segfaults.
- The API has been changed in a way that is not back-compatible, hence an increment in the major version. These changes fix issues that have hampered development, made the user experience more difficult, or were just bad.
- This codebase is guarded by a comprehensive suite of >800 unit tests, calling assert statements several thousand times.


Features
--------
- GPU support has been added for all models and methods
- Mixed/half precision has been added for all models and methods (though the benefits seem mild to none...)
- Serialization is now handled by PyTorch, yielding more compact and efficient I/O
- Missing values are now supported through torch.masked.MaskedTensor objects
- Prior probabilities are now supported for all relevant models and methods and enable more comprehensive/flexible semi-supervised learning than before

Models
------
- All distributions are now multivariate by default, supporting speedups through batched operations
- Factor graphs are now supported as first-class citizens
- Hidden Markov models have been split into DenseHMM and SparseHMM models which differ in how the transition matrix is encoded, with DenseHMM objects being significantly faster
- NaiveBayes models have been removed
- MarkovNetworks models have been temporarily removed
- Constraint graphs have been temporarily removed


Version 0.14.8
==============

Expand Down
2 changes: 1 addition & 1 deletion pomegranate/__init__.py
@@ -1 +1 @@
__version__ = "1.0.1"
__version__ = "1.0.2"
1 change: 0 additions & 1 deletion pomegranate/hmm/_base.py
Expand Up @@ -592,7 +592,6 @@ def fit(self, X, sample_weight=None, priors=None):
w_ = torch.cat(sample_weight, dim=1)
self._initialize(X_, sample_weight=w_)


logp, last_logp = None, None
for i in range(self.max_iter):
start_time = time.time()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -2,7 +2,7 @@

setup(
name='pomegranate',
version='1.0.1',
version='1.0.2',
author='Jacob Schreiber',
author_email='jmschreiber91@gmail.com',
packages=['pomegranate', 'pomegranate.distributions', 'pomegranate.hmm'],
Expand Down

0 comments on commit b907ed4

Please sign in to comment.