https://github.com/GPflow/GPflow
Revision 4a132712259277f3a312ebe81359cc687aeab6fd authored by st-- on 30 April 2018, 16:35:23 UTC, committed by Mark van der Wilk on 30 April 2018, 16:35:23 UTC
* Support exponential distribution as prior.

The exponential distribution here is parametrized using the rate
parameter lambda and always has its mode at 0.

* Reuse exponential density for prior distribution

Add transformation to test of exponential prior
This ensures that it is only evaluated on the positive domain

* Add sample method

* fix test

* fix test again

* more fixes

* add pragma: no cover to make codecov happy

* add sample tests

* sample test

* revert change to densities.exponential()

* fix

* pr comments

* fix test

* removing commented code
1 parent e59ff2f
Raw File
Tip revision: 4a132712259277f3a312ebe81359cc687aeab6fd authored by st-- on 30 April 2018, 16:35:23 UTC
Add Exponential distribution as prior (#717)
Tip revision: 4a13271
.gitignore
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
#  Usually these files are written by a python script from a template
#  before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Emacs backups
*~

# Pycharm IDE directory
.idea

# IPython Notebooks
.ipynb_checkpoints

# VSCode
.vscode
back to top