Skip to content

Commit

Permalink
Merge pull request #253 from elfi-dev/dev
Browse files Browse the repository at this point in the history
Release 0.7 to master
  • Loading branch information
vuolleko authored Nov 30, 2017
2 parents d13da82 + 13b4a0b commit 1476806
Show file tree
Hide file tree
Showing 21 changed files with 1,694 additions and 304 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
Changelog
=========

0.7 (2017-11-30)
----------------

- Added the MaxVar acquisition method
- Added the RandMaxVar acquisition method
- Added the ExpIntVar acquisition method
- Implemented the Two Stage Procedure, a method of summary-statistics diagnostics
- Added new example: the stochastic Lotka-Volterra model
- Fix methods.bo.utils.minimize to be strictly within bounds
- Fix elfi.Distance to support scipy 1.0.0

0.6.3 (2017-09-28)
------------------

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**Version 0.6.3 released!** See the CHANGELOG and [notebooks](https://github.com/elfi-dev/notebooks).
**Version 0.7 released!** See the CHANGELOG and [notebooks](https://github.com/elfi-dev/notebooks).

**NOTE:** For the time being NetworkX 2 is incompatible with ELFI.

Expand Down
94 changes: 72 additions & 22 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Modelling API
-------------
Below is the API for creating generative models.

.. currentmodule:: .

.. autosummary::
elfi.ElfiModel

Expand All @@ -28,16 +30,12 @@ Below is the API for creating generative models.

**Other**

.. currentmodule:: elfi.model.elfi_model

.. autosummary::
elfi.new_model
elfi.load_model
elfi.get_default_model
elfi.set_default_model

.. currentmodule:: elfi.visualization.visualization

.. autosummary::
elfi.draw

Expand All @@ -52,6 +50,7 @@ Below is a list of inference methods included in ELFI.
elfi.BayesianOptimization
elfi.BOLFI


**Result objects**

.. currentmodule:: elfi.methods.results
Expand All @@ -62,9 +61,10 @@ Below is a list of inference methods included in ELFI.
SmcSample
BolfiSample


**Post-processing**

.. currentmodule:: elfi
.. currentmodule:: .

.. autosummary::
elfi.adjust_posterior
Expand All @@ -74,20 +74,40 @@ Below is a list of inference methods included in ELFI.
.. autosummary::
LinearAdjustment


**Diagnostics**

.. currentmodule:: .

.. autosummary::
elfi.TwoStageSelection


**Acquisition methods**

.. currentmodule:: elfi.methods.bo.acquisition

.. autosummary::
LCBSC
MaxVar
RandMaxVar
ExpIntVar
UniformAcquisition

Other
-----

**Data pools**

.. currentmodule:: .

.. autosummary::
elfi.OutputPool
elfi.ArrayPool


**Module functions**

.. currentmodule:: elfi

.. autosummary::
elfi.get_client
elfi.set_client
Expand All @@ -102,6 +122,7 @@ Other
elfi.tools.external_operation



Class documentations
--------------------

Expand Down Expand Up @@ -146,17 +167,15 @@ Modelling API classes

**Other**

.. currentmodule:: elfi.model.elfi_model
.. autofunction:: elfi.new_model

.. automethod:: elfi.new_model
.. autofunction:: elfi.load_model

.. automethod:: elfi.get_current_model
.. autofunction:: elfi.get_default_model

.. automethod:: elfi.set_current_model
.. autofunction:: elfi.set_default_model

.. currentmodule:: elfi.visualization.visualization

.. automethod:: elfi.visualization.visualization.nx_draw
.. autofunction:: elfi.draw

.. This would show undocumented members :undoc-members:
Expand All @@ -180,11 +199,11 @@ Inference API classes
:members:
:inherited-members:

.. currentmodule:: elfi.methods.results


**Result objects**

.. currentmodule:: elfi.methods.results

.. autoclass:: OptimizationResult
:members:
:inherited-members:
Expand All @@ -204,22 +223,55 @@ Inference API classes

**Post-processing**

.. currentmodule:: elfi
.. currentmodule:: .

.. automethod:: elfi.adjust_posterior
.. autofunction:: elfi.adjust_posterior

.. currentmodule:: elfi.methods.post_processing

.. autoclass:: LinearAdjustment
:members:
:inherited-members:

**Diagnostics**

.. currentmodule:: .

.. autoclass:: elfi.TwoStageSelection
:members:
:inherited-members:

**Acquisition methods**

.. currentmodule:: elfi.methods.bo.acquisition

.. autoclass:: LCBSC
:members:
:inherited-members:

.. autoclass:: MaxVar
:members:
:inherited-members:

.. autoclass:: RandMaxVar
:members:
:inherited-members:

.. autoclass:: ExpIntVar
:members:
:inherited-members:

.. autoclass:: UniformAcquisition
:members:
:inherited-members:

Other
.....

**Data pools**

.. currentmodule:: .

.. autoclass:: elfi.OutputPool
:members:
:inherited-members:
Expand All @@ -231,11 +283,9 @@ Other

**Module functions**

.. currentmodule:: elfi

.. automethod:: elfi.get_client
.. autofunction:: elfi.get_client

.. automethod:: elfi.set_client
.. autofunction:: elfi.set_client


**Tools**
Expand Down
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def __getattr__(cls, name):
MOCK_MODULES = [
'pygtk', 'gtk', 'gobject', 'argparse', 'numpy', 'pandas', 'scipy', 'unqlite', 'dask',
'distributed', 'distributed.client', 'graphviz', 'matplotlib', 'sobol_seq', 'GPy',
'dask.delayed', 'scipy.optimize', 'scipy.stats', 'scipy.spatial', 'scipy.sparse',
'matplotlib.pyplot', 'numpy.random', 'networkx', 'ipyparallel', 'numpy.lib',
'numpy.lib.format', 'sklearn.linear_model'
'dask.delayed', 'scipy.linalg', 'scipy.optimize', 'scipy.stats', 'scipy.spatial',
'scipy.sparse', 'scipy.special', 'matplotlib.pyplot', 'numpy.random', 'networkx',
'ipyparallel', 'numpy.lib', 'numpy.lib.format', 'sklearn.linear_model'
]
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

Expand Down
3 changes: 2 additions & 1 deletion docs/usage/external.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ Let's begin by importing some libraries that we will be using:
import scipy.stats as ss
import elfi
import elfi.examples
import elfi.examples.bdm
import elfi.examples.ma2
%matplotlib inline
Expand Down
1 change: 0 additions & 1 deletion docs/usage/parallelization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,3 @@ Remember to stop the ipcluster when done
2017-07-19 16:20:58.662 [IPClusterStop] Stopping cluster [pid=21020] with [signal=<Signals.SIGINT: 2>]
3 changes: 2 additions & 1 deletion elfi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import elfi.methods.mcmc
import elfi.model.tools as tools
from elfi.client import get_client, set_client
from elfi.methods.diagnostics import TwoStageSelection
from elfi.methods.parameter_inference import *
from elfi.methods.post_processing import adjust_posterior
from elfi.model.elfi_model import *
Expand All @@ -23,4 +24,4 @@
__email__ = '[email protected]'

# make sure __version_ is on the last non-empty line (read by setup.py)
__version__ = '0.6.3'
__version__ = '0.7'
Loading

0 comments on commit 1476806

Please sign in to comment.