https://github.com/simonrw/emcee_functools
Convenience function helpers for emcee
https://github.com/simonrw/emcee_functools
Last synced: about 1 year ago
JSON representation
Convenience function helpers for emcee
- Host: GitHub
- URL: https://github.com/simonrw/emcee_functools
- Owner: simonrw
- License: mit
- Created: 2015-09-06T15:10:40.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-20T17:10:12.000Z (almost 11 years ago)
- Last Synced: 2025-03-31T04:15:52.114Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 172 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `emcee_functools`
Convenience function helpers for `emcee`.
## Example usage:
```python
from emcee_functools import func_signature, Fixed, Variable
@func_signature(a=Fixed(), b=Variable())
def lnprob(**params):
a = params['a']
b = params['b']
lnp = lnprob(**params)
if np.isfinite(lnp):
return 0. # Placeholder, should actually return a probability here...
return -np.inf
```